class Google::Apis::CloudprofilerV2::Deployment

Deployment contains the deployment identification information.

Attributes

labels[RW]

Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9](`0,61`)?$`. Value for an individual label must be <= 512 bytes, the total size of all label names and values must be <= 1024 bytes. Label named “language” can be used to record the programming language of the profiled deployment. The standard choices for the value include “java”, “go”, “python”, “ruby”, “nodejs” , “php”, “dotnet”. For deployments running on Google Cloud Platform, “zone” or “region” label should be present describing the deployment location. An example of a zone is “us-central1-a”, an example of a region is “us-central1” or “us-central”. Corresponds to the JSON property `labels` @return [Hash<String,String>]

project_id[RW]

Project ID is the ID of a cloud project. Validation regex: `^a-z`4,61`$ `. Corresponds to the JSON property `projectId` @return [String]

target[RW]

Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User- specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z](`0,253`)?$`. Corresponds to the JSON property `target` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudprofiler_v2/classes.rb, line 85
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudprofiler_v2/classes.rb, line 90
def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @project_id = args[:project_id] if args.key?(:project_id)
  @target = args[:target] if args.key?(:target)
end