Security Command Center API . organizations . sources

Instance Methods

findings()

Returns the findings Resource.

close()

Close httplib2 connections.

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

get(name, x__xgafv=None)

getIamPolicy(resource, body=None, x__xgafv=None)

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

list_next()

Retrieves the next page of results.

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

setIamPolicy(resource, body=None, x__xgafv=None)

testIamPermissions(resource, body=None, x__xgafv=None)

Method Details

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

Args:
  parent: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "canonicalName": "A String",
  "description": "A String",
  "displayName": "A String",
  "name": "A String",
}

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

Returns:
  An object of the form:

    {
  "canonicalName": "A String",
  "description": "A String",
  "displayName": "A String",
  "name": "A String",
}
get(name, x__xgafv=None)

Args:
  name: string, A parameter (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "canonicalName": "A String",
  "description": "A String",
  "displayName": "A String",
  "name": "A String",
}
getIamPolicy(resource, body=None, x__xgafv=None)

Args:
  resource: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "options": {
    "requestedPolicyVersion": 42,
  },
}

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

Returns:
  An object of the form:

    {
  "auditConfigs": [
    {
      "auditLogConfigs": [
        {
          "exemptedMembers": [
            "A String",
          ],
          "logType": "A String",
        },
      ],
      "service": "A String",
    },
  ],
  "bindings": [
    {
      "condition": {
        "description": "A String",
        "expression": "A String",
        "location": "A String",
        "title": "A String",
      },
      "members": [
        "A String",
      ],
      "role": "A String",
    },
  ],
  "etag": "A String",
  "version": 42,
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  pageSize: integer, A parameter
  pageToken: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "nextPageToken": "A String",
  "sources": [
    {
      "canonicalName": "A String",
      "description": "A String",
      "displayName": "A String",
      "name": "A String",
    },
  ],
}
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)

Args:
  name: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "canonicalName": "A String",
  "description": "A String",
  "displayName": "A String",
  "name": "A String",
}

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

Returns:
  An object of the form:

    {
  "canonicalName": "A String",
  "description": "A String",
  "displayName": "A String",
  "name": "A String",
}
setIamPolicy(resource, body=None, x__xgafv=None)

Args:
  resource: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "policy": {
    "auditConfigs": [
      {
        "auditLogConfigs": [
          {
            "exemptedMembers": [
              "A String",
            ],
            "logType": "A String",
          },
        ],
        "service": "A String",
      },
    ],
    "bindings": [
      {
        "condition": {
          "description": "A String",
          "expression": "A String",
          "location": "A String",
          "title": "A String",
        },
        "members": [
          "A String",
        ],
        "role": "A String",
      },
    ],
    "etag": "A String",
    "version": 42,
  },
  "updateMask": "A String",
}

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

Returns:
  An object of the form:

    {
  "auditConfigs": [
    {
      "auditLogConfigs": [
        {
          "exemptedMembers": [
            "A String",
          ],
          "logType": "A String",
        },
      ],
      "service": "A String",
    },
  ],
  "bindings": [
    {
      "condition": {
        "description": "A String",
        "expression": "A String",
        "location": "A String",
        "title": "A String",
      },
      "members": [
        "A String",
      ],
      "role": "A String",
    },
  ],
  "etag": "A String",
  "version": 42,
}
testIamPermissions(resource, body=None, x__xgafv=None)

Args:
  resource: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "permissions": [
    "A String",
  ],
}

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

Returns:
  An object of the form:

    {
  "permissions": [
    "A String",
  ],
}