# Apigee API . organizations . securityProfilesV2

## Instance Methods

Close httplib2 connections.

Create a security profile v2.

Delete a security profile v2.

Get a security profile v2.

List security profiles v2.

Retrieves the next page of results.

Update a security profile V2.

### Method Details

`close()`

    Close httplib2 connections.

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

    Create a security profile v2.

    Args:
      parent: string, Required. The parent resource name. Format: `organizations/{org}` (required)
      body: object, The request body.
        The object takes the form of:

    { # Security profile for risk assessment version 2.
      "createTime": "A String", # Output only. The time of the security profile creation.
      "description": "A String", # Optional. The description of the security profile.
      "googleDefined": True or False, # Output only. Whether the security profile is google defined.
      "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
      "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
        "a_key": { # The configuration definition for a specific assessment.
          "weight": "A String", # The weight of the assessment.
        },
      },
      "updateTime": "A String", # Output only. The time of the security profile update.
    }

      securityProfileV2Id: string, Required. The security profile id.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Security profile for risk assessment version 2.
      "createTime": "A String", # Output only. The time of the security profile creation.
      "description": "A String", # Optional. The description of the security profile.
      "googleDefined": True or False, # Output only. Whether the security profile is google defined.
      "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
      "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
        "a_key": { # The configuration definition for a specific assessment.
          "weight": "A String", # The weight of the assessment.
        },
      },
      "updateTime": "A String", # Output only. The time of the security profile update.
    }

`delete(name, x__xgafv=None)`

    Delete a security profile v2.

    Args:
      name: string, Required. The name of the security profile v2 to delete. Format: `organizations/{org}/securityProfilesV2/{profile}` (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)`

    Get a security profile v2.

    Args:
      name: string, Required. The name of the security profile v2 to get. Format: `organizations/{org}/securityProfilesV2/{profile}` (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Security profile for risk assessment version 2.
      "createTime": "A String", # Output only. The time of the security profile creation.
      "description": "A String", # Optional. The description of the security profile.
      "googleDefined": True or False, # Output only. Whether the security profile is google defined.
      "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
      "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
        "a_key": { # The configuration definition for a specific assessment.
          "weight": "A String", # The weight of the assessment.
        },
      },
      "updateTime": "A String", # Output only. The time of the security profile update.
    }

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

    List security profiles v2.

    Args:
      parent: string, Required. For a specific organization, list of all the security profiles. Format: `organizations/{org}` (required)
      pageSize: integer, Optional. The maximum number of profiles to return
      pageToken: string, Optional. A page token, received from a previous `ListSecurityProfilesV2` call. Provide this to retrieve the subsequent page.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response for ListSecurityProfilesV2.
      "nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
      "securityProfilesV2": [ # List of security profiles in the organization.
        { # Security profile for risk assessment version 2.
          "createTime": "A String", # Output only. The time of the security profile creation.
          "description": "A String", # Optional. The description of the security profile.
          "googleDefined": True or False, # Output only. Whether the security profile is google defined.
          "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
          "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
            "a_key": { # The configuration definition for a specific assessment.
              "weight": "A String", # The weight of the assessment.
            },
          },
          "updateTime": "A String", # Output only. The time of the security profile update.
        },
      ],
    }

`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)`

    Update a security profile V2.

    Args:
      name: string, Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile} (required)
      body: object, The request body.
        The object takes the form of:

    { # Security profile for risk assessment version 2.
      "createTime": "A String", # Output only. The time of the security profile creation.
      "description": "A String", # Optional. The description of the security profile.
      "googleDefined": True or False, # Output only. Whether the security profile is google defined.
      "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
      "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
        "a_key": { # The configuration definition for a specific assessment.
          "weight": "A String", # The weight of the assessment.
        },
      },
      "updateTime": "A String", # Output only. The time of the security profile update.
    }

      updateMask: string, Optional. The list of fields to update. Valid fields to update are `description` and `profileAssessmentConfigs`.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Security profile for risk assessment version 2.
      "createTime": "A String", # Output only. The time of the security profile creation.
      "description": "A String", # Optional. The description of the security profile.
      "googleDefined": True or False, # Output only. Whether the security profile is google defined.
      "name": "A String", # Identifier. Name of the security profile v2 resource. Format: organizations/{org}/securityProfilesV2/{profile}
      "profileAssessmentConfigs": { # Required. The configuration for each assessment in this profile. Key is the name/id of the assessment.
        "a_key": { # The configuration definition for a specific assessment.
          "weight": "A String", # The weight of the assessment.
        },
      },
      "updateTime": "A String", # Output only. The time of the security profile update.
    }