Contact Center AI Insights API . projects . locations . views

Instance Methods

close()

Close httplib2 connections.

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

Creates a view.

delete(name, x__xgafv=None)

Deletes a view.

get(name, x__xgafv=None)

Gets a view.

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

Lists views.

list_next()

Retrieves the next page of results.

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

Updates a view.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a view.

Args:
  parent: string, Required. The parent resource of the view. Required. The location to create a view for. Format: `projects//locations/` or `projects//locations/` (required)
  body: object, The request body.
    The object takes the form of:

{ # The View resource.
  "createTime": "A String", # Output only. The time at which this view was created.
  "displayName": "A String", # The human-readable display name of the view.
  "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
  "updateTime": "A String", # Output only. The most recent time at which the view was updated.
  "value": "A String", # String with specific view properties, must be non-empty.
}

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

Returns:
  An object of the form:

    { # The View resource.
  "createTime": "A String", # Output only. The time at which this view was created.
  "displayName": "A String", # The human-readable display name of the view.
  "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
  "updateTime": "A String", # Output only. The most recent time at which the view was updated.
  "value": "A String", # String with specific view properties, must be non-empty.
}
delete(name, x__xgafv=None)
Deletes a view.

Args:
  name: string, Required. The name of the view to delete. (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 view.

Args:
  name: string, Required. The name of the view to get. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The View resource.
  "createTime": "A String", # Output only. The time at which this view was created.
  "displayName": "A String", # The human-readable display name of the view.
  "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
  "updateTime": "A String", # Output only. The most recent time at which the view was updated.
  "value": "A String", # String with specific view properties, must be non-empty.
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists views.

Args:
  parent: string, Required. The parent resource of the views. (required)
  pageSize: integer, The maximum number of views to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.
  pageToken: string, The value returned by the last `ListViewsResponse`; indicates that this is a continuation of a prior `ListViews` call and the system should return the next page of data.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response of listing views.
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  "views": [ # The views that match the request.
    { # The View resource.
      "createTime": "A String", # Output only. The time at which this view was created.
      "displayName": "A String", # The human-readable display name of the view.
      "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
      "updateTime": "A String", # Output only. The most recent time at which the view was updated.
      "value": "A String", # String with specific view properties, must be non-empty.
    },
  ],
}
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 view.

Args:
  name: string, Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view} (required)
  body: object, The request body.
    The object takes the form of:

{ # The View resource.
  "createTime": "A String", # Output only. The time at which this view was created.
  "displayName": "A String", # The human-readable display name of the view.
  "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
  "updateTime": "A String", # Output only. The most recent time at which the view was updated.
  "value": "A String", # String with specific view properties, must be non-empty.
}

  updateMask: string, The 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:

    { # The View resource.
  "createTime": "A String", # Output only. The time at which this view was created.
  "displayName": "A String", # The human-readable display name of the view.
  "name": "A String", # Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
  "updateTime": "A String", # Output only. The most recent time at which the view was updated.
  "value": "A String", # String with specific view properties, must be non-empty.
}