Class: Google::Apis::CloudprofilerV2::Deployment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudprofiler_v2/classes.rb,
generated/google/apis/cloudprofiler_v2/representations.rb,
generated/google/apis/cloudprofiler_v2/representations.rb

Overview

Deployment contains the deployment identification information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Deployment

Returns a new instance of Deployment



88
89
90
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 88

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#labelsHash<String,String>

Labels identify the deployment within the user universe and same target. Validation regex for label names: ^[a-z0-9]([a-z0-9-]0,61[a-z0-9])?$. 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

Returns:

  • (Hash<String,String>)


70
71
72
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 70

def labels
  @labels
end

#project_idString

Project ID is the ID of a cloud project. Validation regex: ^a-z4,61[a-z0-9]$. Corresponds to the JSON property projectId

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 76

def project_id
  @project_id
end

#targetString

Target is the service name used to group related deployments:

  • Service name for GAE Flex / Standard.
  • Cluster and container name for GKE.
  • User-specified string for direct GCE profiling (e.g. Java).
  • Job name for Dataflow. Validation regex: ^[a-z]([-a-z0-9_.]0,253[a-z0-9])?$. Corresponds to the JSON property target

Returns:

  • (String)


86
87
88
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 86

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



93
94
95
96
97
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 93

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