original_docstring: Returns the request necessary for adding the health check.
docstring: Returns the request necessary for adding the health check.
docstring_tokens: Returns the request necessary for adding the health check .
code: def CreateRequests(self, args):
      """Returns the request necessary for adding the health check."""
  
      health_check_ref = self.CreateGlobalReference(
          args.name, resource_type='healthChecks')
      proxy_header = self.messages.HTTPSHealthCheck.ProxyHeaderValueValuesEnum(
          args.proxy_header)
      request = self.messages.ComputeHealthChecksInsertRequest(
          healthCheck=self.messages.HealthCheck(
              name=health_check_ref.Name(),
              description=args.description,
              type=self.messages.HealthCheck.TypeValueValuesEnum.HTTPS,
              httpsHealthCheck=self.messages.HTTPSHealthCheck(
                  host=args.host,
                  port=args.port,
                  portName=args.port_name,
                  requestPath=args.request_path,
                  proxyHeader=proxy_header),
              checkIntervalSec=args.check_interval,
              timeoutSec=args.timeout,
              healthyThreshold=args.healthy_threshold,
              unhealthyThreshold=args.unhealthy_threshold,
          ),
          project=self.project)
  
      return [request]
code_tokens: def CreateRequests ( self , args ) : health_check_ref = self . CreateGlobalReference ( args . name , resource_type = 'healthChecks' ) proxy_header = self . messages . HTTPSHealthCheck . ProxyHeaderValueValuesEnum ( args . proxy_header ) request = self . messages . ComputeHealthChecksInsertRequest ( healthCheck = self . messages . HealthCheck ( name = health_check_ref . Name ( ) , description = args . description , type = self . messages . HealthCheck . TypeValueValuesEnum . HTTPS , httpsHealthCheck = self . messages . HTTPSHealthCheck ( host = args . host , port = args . port , portName = args . port_name , requestPath = args . request_path , proxyHeader = proxy_header ) , checkIntervalSec = args . check_interval , timeoutSec = args . timeout , healthyThreshold = args . healthy_threshold , unhealthyThreshold = args . unhealthy_threshold , ) , project = self . project ) return [ request ]
short_docstring: Returns the request necessary for adding the health check.
short_docstring_tokens: Returns the request necessary for adding the health check .
comment: """Returns the request necessary for adding the health check."""