File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
packages/monitoring/src/v3 Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,10 @@ function GroupServiceApiBuilder(gaxGrpc) {
521521 return new GroupServiceApiBuilder ( gaxGrpc ) ;
522522 }
523523
524- var groupServiceClient = require ( 'grpc-google-monitoring-v3' ) . client ;
524+ var groupServiceClient = gaxGrpc . load ( [ {
525+ root : require ( 'google-proto-files' ) ( '..' ) ,
526+ file : 'google/monitoring/v3/group_service.proto'
527+ } ] ) ;
525528 extend ( this , groupServiceClient . google . monitoring . v3 ) ;
526529
527530 var grpcClients = {
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ MetricServiceApi.prototype.matchProjectFromProjectName = function(projectName) {
158158/**
159159 * Returns a fully-qualified metric_descriptor resource name string.
160160 * @param {String } project
161- * @param {String } metric_descriptor
161+ * @param {String } metricDescriptor
162162 * @returns {String }
163163 */
164164MetricServiceApi . prototype . metricDescriptorPath = function ( project , metricDescriptor ) {
@@ -191,7 +191,7 @@ MetricServiceApi.prototype.matchMetricDescriptorFromMetricDescriptorName = funct
191191/**
192192 * Returns a fully-qualified monitored_resource_descriptor resource name string.
193193 * @param {String } project
194- * @param {String } monitored_resource_descriptor
194+ * @param {String } monitoredResourceDescriptor
195195 * @returns {String }
196196 */
197197MetricServiceApi . prototype . monitoredResourceDescriptorPath = function ( project , monitoredResourceDescriptor ) {
@@ -693,7 +693,10 @@ function MetricServiceApiBuilder(gaxGrpc) {
693693 return new MetricServiceApiBuilder ( gaxGrpc ) ;
694694 }
695695
696- var metricServiceClient = require ( 'grpc-google-monitoring-v3' ) . client ;
696+ var metricServiceClient = gaxGrpc . load ( [ {
697+ root : require ( 'google-proto-files' ) ( '..' ) ,
698+ file : 'google/monitoring/v3/metric_service.proto'
699+ } ] ) ;
697700 extend ( this , metricServiceClient . google . monitoring . v3 ) ;
698701
699702 var grpcClients = {
You can’t perform that action at this time.
0 commit comments