Class: Google::Apis::NetworkconnectivityV1alpha1::Operation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkconnectivity_v1alpha1/classes.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb

Overview

Represents information regarding an operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Operation

Returns a new instance of Operation.



1437
1438
1439
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1437

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

Instance Attribute Details

#consumer_idString

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

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1344

def consumer_id
  @consumer_id
end

#end_timeString

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

Returns:

  • (String)


1351
1352
1353
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1351

def end_time
  @end_time
end

#extensionsArray<Hash<String,Object>>

Unimplemented. Corresponds to the JSON property extensions

Returns:

  • (Array<Hash<String,Object>>)


1356
1357
1358
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1356

def extensions
  @extensions
end

#importanceString

DO NOT USE. This is an experimental field. Corresponds to the JSON property importance

Returns:

  • (String)


1361
1362
1363
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1361

def importance
  @importance
end

#labelsHash<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 property labels

Returns:

  • (Hash<String,String>)


1375
1376
1377
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1375

def labels
  @labels
end

#log_entriesArray<Google::Apis::NetworkconnectivityV1alpha1::LogEntry>

Represents information to be logged. Corresponds to the JSON property logEntries



1380
1381
1382
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1380

def log_entries
  @log_entries
end

#metric_value_setsArray<Google::Apis::NetworkconnectivityV1alpha1::MetricValueSet>

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



1391
1392
1393
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1391

def metric_value_sets
  @metric_value_sets
end

#operation_idString

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

Returns:

  • (String)


1401
1402
1403
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1401

def operation_id
  @operation_id
end

#operation_nameString

Fully qualified name of the operation. Reserved for future use. Corresponds to the JSON property operationName

Returns:

  • (String)


1406
1407
1408
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1406

def operation_name
  @operation_name
end

#quota_propertiesGoogle::Apis::NetworkconnectivityV1alpha1::QuotaProperties

Represents the properties needed for quota operations. Corresponds to the JSON property quotaProperties



1411
1412
1413
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1411

def quota_properties
  @quota_properties
end

#resourcesArray<Google::Apis::NetworkconnectivityV1alpha1::ResourceInfo>

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



1417
1418
1419
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1417

def resources
  @resources
end

#start_timeString

Required. Start time of the operation. Corresponds to the JSON property startTime

Returns:

  • (String)


1422
1423
1424
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1422

def start_time
  @start_time
end

#trace_spansArray<Google::Apis::NetworkconnectivityV1alpha1::TraceSpan>

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



1429
1430
1431
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1429

def trace_spans
  @trace_spans
end

#user_labelsHash<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

Returns:

  • (Hash<String,String>)


1435
1436
1437
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1435

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1442

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