Class: Google::Apis::CloudprofilerV2::Deployment
- Inherits:
-
Object
- Object
- Google::Apis::CloudprofilerV2::Deployment
- 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
-
#labels ⇒ Hash<String,String>
Labels identify the deployment within the user universe and same target.
-
#project_id ⇒ String
Project ID is the ID of a cloud project.
-
#target ⇒ String
Target is the service name used to group related deployments: * Service name for GAE Flex / Standard.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Deployment
constructor
A new instance of Deployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#labels ⇒ Hash<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
70 71 72 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 70 def labels @labels end |
#project_id ⇒ String
Project ID is the ID of a cloud project.
Validation regex: ^a-z
4,61[a-z0-9]$
.
Corresponds to the JSON property projectId
76 77 78 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 76 def project_id @project_id end |
#target ⇒ String
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 propertytarget
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 |