Show / Hide Table of Contents

Class GoogleCloudRecommenderV1Operation

Contains an operation for a resource loosely based on the JSON-PATCH format with support for: * Custom filters for describing partial array patch. * Extended path values for describing nested arrays. * Custom fields for describing the resource for which the operation is being described. * Allows extension to custom operations not natively supported by RFC6902. See https://tools.ietf.org/html/rfc6902 for details on the original RFC.

Inheritance
object
GoogleCloudRecommenderV1Operation
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Recommender.v1.Data
Assembly: Google.Apis.Recommender.v1.dll
Syntax
public class GoogleCloudRecommenderV1Operation : IDirectResponseSchema

Properties

Action

Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.

Declaration
[JsonProperty("action")]
public virtual string Action { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Path

Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.

Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type Description
string

PathFilters

Set of filters to apply if path refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example:

{ "/versions/*/name" : "it-123"
"/versions/*/targetSize/percent": 20 }
  • Example:
{ "/bindings/*/role": "roles/owner"
"/bindings/*/condition" : null }
  • Example:
{ "/bindings/*/role": "roles/owner"
"/bindings/*/members/*" : ["x@example.com", "y@example.com"] }

When both path_filters and path_value_matchers are set, an implicit AND must be performed.

Declaration
[JsonProperty("pathFilters")]
public virtual IDictionary<string, object> PathFilters { get; set; }
Property Value
Type Description
IDictionary<string, object>

PathValueMatchers

Similar to path_filters, this contains set of filters to apply if path field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.

Declaration
[JsonProperty("pathValueMatchers")]
public virtual IDictionary<string, GoogleCloudRecommenderV1ValueMatcher> PathValueMatchers { get; set; }
Property Value
Type Description
IDictionary<string, GoogleCloudRecommenderV1ValueMatcher>

Resource

Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.

Declaration
[JsonProperty("resource")]
public virtual string Resource { get; set; }
Property Value
Type Description
string

ResourceType

Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance

Declaration
[JsonProperty("resourceType")]
public virtual string ResourceType { get; set; }
Property Value
Type Description
string

SourcePath

Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.

Declaration
[JsonProperty("sourcePath")]
public virtual string SourcePath { get; set; }
Property Value
Type Description
string

SourceResource

Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = and resource_name = . This field is empty for all other values of action.

Declaration
[JsonProperty("sourceResource")]
public virtual string SourceResource { get; set; }
Property Value
Type Description
string

Value

Value for the path field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or value_matcher will be set for 'test' operation. An exact match must be performed.

Declaration
[JsonProperty("value")]
public virtual object Value { get; set; }
Property Value
Type Description
object

ValueMatcher

Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or value will be set for 'test' operation.

Declaration
[JsonProperty("valueMatcher")]
public virtual GoogleCloudRecommenderV1ValueMatcher ValueMatcher { get; set; }
Property Value
Type Description
GoogleCloudRecommenderV1ValueMatcher

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX