Apigee API . organizations . environments . traceConfig . overrides

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, x__xgafv=None)

Creates a trace configuration override. The response contains a system-generated UUID, that can be used to view, update, or delete the configuration override. Use the List API to view the existing trace configuration overrides.

delete(name, x__xgafv=None)

Deletes a distributed trace configuration override.

get(name, x__xgafv=None)

Gets a trace configuration override.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Lists all of the distributed trace configuration overrides in an environment.

list_next()

Retrieves the next page of results.

patch(name, body=None, updateMask=None, x__xgafv=None)

Updates a distributed trace configuration override. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a trace configuration override. The response contains a system-generated UUID, that can be used to view, update, or delete the configuration override. Use the List API to view the existing trace configuration overrides.

Args:
  parent: string, Required. Parent resource of the trace configuration override. Use the following structure in your request. "organizations/*/environments/*/traceConfig". (required)
  body: object, The request body.
    The object takes the form of:

{ # A representation of a configuration override.
  "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
  "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
  "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
    "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
    "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A representation of a configuration override.
  "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
  "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
  "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
    "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
    "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  },
}
delete(name, x__xgafv=None)
Deletes a distributed trace configuration override.

Args:
  name: string, Required. Name of the trace configuration override. Use the following structure in your request: "organizations/*/environments/*/traceConfig/overrides/*". (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}
get(name, x__xgafv=None)
Gets a trace configuration override.

Args:
  name: string, Required. Name of the trace configuration override. Use the following structure in your request: "organizations/*/environments/*/traceConfig/overrides/*". (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A representation of a configuration override.
  "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
  "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
  "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
    "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
    "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  },
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all of the distributed trace configuration overrides in an environment.

Args:
  parent: string, Required. Parent resource of the trace configuration override. Use the following structure in your request: "organizations/*/environments/*/traceConfig". (required)
  pageSize: integer, Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.
  pageToken: string, A page token, returned from a previous `ListTraceConfigOverrides` call. Token value that can be used to retrieve the subsequent page. When paginating, all other parameters provided to `ListTraceConfigOverrides` must match those specified in the call to obtain the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListTraceConfigOverrides.
  "nextPageToken": "A String", # Token value that can be passed as `page_token` to retrieve the next page of content.
  "traceConfigOverrides": [ # List all trace configuration overrides in an environment.
    { # A representation of a configuration override.
      "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
      "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
      "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
        "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
        "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
      },
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.
        
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates a distributed trace configuration override. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.

Args:
  name: string, Required. Name of the trace configuration override. Use the following structure in your request: "organizations/*/environments/*/traceConfig/overrides/*". (required)
  body: object, The request body.
    The object takes the form of:

{ # A representation of a configuration override.
  "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
  "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
  "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
    "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
    "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  },
}

  updateMask: string, List of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A representation of a configuration override.
  "apiProxy": "A String", # ID of the API proxy that will have its trace configuration overridden.
  "name": "A String", # ID of the trace configuration override specified as a system-generated UUID.
  "samplingConfig": { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration to override.
    "sampler": "A String", # Sampler of distributed tracing. OFF is the default value.
    "samplingRate": 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are > 0 and <= 0.5.
  },
}