Class: Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1Operation
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1Operation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/representations.rb
Overview
Represents information regarding an operation.
Instance Attribute Summary collapse
-
#consumer_id ⇒ String
Identity of the consumer who is using the service.
-
#end_time ⇒ String
End time of the operation.
-
#extensions ⇒ Array<Hash<String,Object>>
Unimplemented.
-
#importance ⇒ String
DO NOT USE.
-
#labels ⇒ Hash<String,String>
Labels describing the operation.
-
#log_entries ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LogEntry>
Represents information to be logged.
-
#metric_value_sets ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1MetricValueSet>
Represents information about this operation.
-
#operation_id ⇒ String
Identity of the operation.
-
#operation_name ⇒ String
Fully qualified name of the operation.
-
#quota_properties ⇒ Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1QuotaProperties
Represents the properties needed for quota operations.
-
#resources ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ResourceInfo>
The resources that are involved in the operation.
-
#start_time ⇒ String
Required.
-
#trace_spans ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1TraceSpan>
Unimplemented.
-
#user_labels ⇒ Hash<String,String>
Private Preview.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleApiServicecontrolV1Operation
constructor
A new instance of GoogleApiServicecontrolV1Operation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleApiServicecontrolV1Operation
Returns a new instance of GoogleApiServicecontrolV1Operation.
1877 1878 1879 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1877 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_id ⇒ String
Identity of the consumer who is using the service. This field should be filled
in for the operations initiated by a consumer, but not for service-initiated
operations that are not related to a specific consumer. - This can be in one
of the following formats: - project:PROJECT_ID, - project_
number:
PROJECT_NUMBER, - projects/PROJECT_ID or PROJECT_NUMBER, - folders/
FOLDER_NUMBER, - organizations/ORGANIZATION_NUMBER, - api_
key:API_KEY.
Corresponds to the JSON property consumerId
1784 1785 1786 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1784 def consumer_id @consumer_id end |
#end_time ⇒ String
End time of the operation. Required when the operation is used in
ServiceController.Report, but optional when the operation is used in
ServiceController.Check.
Corresponds to the JSON property endTime
1791 1792 1793 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1791 def end_time @end_time end |
#extensions ⇒ Array<Hash<String,Object>>
Unimplemented.
Corresponds to the JSON property extensions
1796 1797 1798 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1796 def extensions @extensions end |
#importance ⇒ String
DO NOT USE. This is an experimental field.
Corresponds to the JSON property importance
1801 1802 1803 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1801 def importance @importance end |
#labels ⇒ Hash<String,String>
Labels describing the operation. Only the following labels are allowed: - Labels describing monitored resources as defined in the service configuration.
- Default labels of metric values. When specified, labels defined in the
metric value override these default. - The following labels defined by Google
Cloud Platform: -
cloud.googleapis.com/location
describing the location where the operation happened, -servicecontrol.googleapis.com/user_agent
describing the user agent of the API request, -servicecontrol.googleapis.com/ service_agent
describing the service used to handle the API request (e.g. ESP) , -servicecontrol.googleapis.com/platform
describing the platform where the API is served, such as App Engine, Compute Engine, or Kubernetes Engine. Corresponds to the JSON propertylabels
1815 1816 1817 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1815 def labels @labels end |
#log_entries ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LogEntry>
Represents information to be logged.
Corresponds to the JSON property logEntries
1820 1821 1822 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1820 def log_entries @log_entries end |
#metric_value_sets ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1MetricValueSet>
Represents information about this operation. Each MetricValueSet corresponds
to a metric defined in the service configuration. The data type used in the
MetricValueSet must agree with the data type specified in the metric
definition. Within a single operation, it is not allowed to have more than one
MetricValue instances that have the same metric names and identical label
value combinations. If a request has such duplicated MetricValue instances,
the entire request is rejected with an invalid argument error.
Corresponds to the JSON property metricValueSets
1831 1832 1833 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1831 def metric_value_sets @metric_value_sets end |
#operation_id ⇒ String
Identity of the operation. This must be unique within the scope of the service
that generated the operation. If the service calls Check() and Report() on the
same operation, the two calls should carry the same id. UUID version 4 is
recommended, though not required. In scenarios where an operation is computed
from existing information and an idempotent id is desirable for deduplication
purpose, UUID version 5 is recommended. See RFC 4122 for details.
Corresponds to the JSON property operationId
1841 1842 1843 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1841 def operation_id @operation_id end |
#operation_name ⇒ String
Fully qualified name of the operation. Reserved for future use.
Corresponds to the JSON property operationName
1846 1847 1848 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1846 def operation_name @operation_name end |
#quota_properties ⇒ Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1QuotaProperties
Represents the properties needed for quota operations.
Corresponds to the JSON property quotaProperties
1851 1852 1853 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1851 def quota_properties @quota_properties end |
#resources ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ResourceInfo>
The resources that are involved in the operation. The maximum supported number
of entries in this field is 100.
Corresponds to the JSON property resources
1857 1858 1859 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1857 def resources @resources end |
#start_time ⇒ String
Required. Start time of the operation.
Corresponds to the JSON property startTime
1862 1863 1864 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1862 def start_time @start_time end |
#trace_spans ⇒ Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1TraceSpan>
Unimplemented. A list of Cloud Trace spans. The span names shall contain the
id of the destination project which can be either the produce or the consumer
project.
Corresponds to the JSON property traceSpans
1869 1870 1871 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1869 def trace_spans @trace_spans end |
#user_labels ⇒ Hash<String,String>
Private Preview. This feature is only available for approved services. User
defined labels for the resource that this operation is associated with.
Corresponds to the JSON property userLabels
1875 1876 1877 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1875 def user_labels @user_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1882 def update!(**args) @consumer_id = args[:consumer_id] if args.key?(:consumer_id) @end_time = args[:end_time] if args.key?(:end_time) @extensions = args[:extensions] if args.key?(:extensions) @importance = args[:importance] if args.key?(:importance) @labels = args[:labels] if args.key?(:labels) @log_entries = args[:log_entries] if args.key?(:log_entries) @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets) @operation_id = args[:operation_id] if args.key?(:operation_id) @operation_name = args[:operation_name] if args.key?(:operation_name) @quota_properties = args[:quota_properties] if args.key?(:quota_properties) @resources = args[:resources] if args.key?(:resources) @start_time = args[:start_time] if args.key?(:start_time) @trace_spans = args[:trace_spans] if args.key?(:trace_spans) @user_labels = args[:user_labels] if args.key?(:user_labels) end |