SAS Portal API . nodes . nodes . deployments

Instance Methods

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

Creates a new deployment.

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

Lists deployments.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

create(parent, body=None, x__xgafv=None)
Creates a new deployment.

Args:
  parent: string, Required. The parent resource name where the deployment is to be created. (required)
  body: object, The request body.
    The object takes the form of:

{ # The Deployment.
    "defaultBillingMode": "A String", # Default billing mode for the deployment and devices under it.
    "allowedBillingModes": [ # The allowed billing modes under this deployment.
      "A String",
    ],
    "name": "A String", # Output only. Resource name.
    "displayName": "A String", # The deployment's display name.
    "sasUserIds": [ # User id used by the devices belonging to this deployment. Each deployment
        # should be associated with one unique user_id.
      "A String",
    ],
  }

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

Returns:
  An object of the form:

    { # The Deployment.
      "defaultBillingMode": "A String", # Default billing mode for the deployment and devices under it.
      "allowedBillingModes": [ # The allowed billing modes under this deployment.
        "A String",
      ],
      "name": "A String", # Output only. Resource name.
      "displayName": "A String", # The deployment's display name.
      "sasUserIds": [ # User id used by the devices belonging to this deployment. Each deployment
          # should be associated with one unique user_id.
        "A String",
      ],
    }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists deployments.

Args:
  parent: string, Required. The parent resource name, for example, "nodes/1",
customer/1/nodes/2. (required)
  pageSize: integer, The maximum number of deployments to return in the response.
  pageToken: string, A pagination token returned from a previous call to ListDeployments
method that
indicates where this listing should continue from.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListDeployments method.
    "deployments": [ # The deployments that match the
        # request.
      { # The Deployment.
          "defaultBillingMode": "A String", # Default billing mode for the deployment and devices under it.
          "allowedBillingModes": [ # The allowed billing modes under this deployment.
            "A String",
          ],
          "name": "A String", # Output only. Resource name.
          "displayName": "A String", # The deployment's display name.
          "sasUserIds": [ # User id used by the devices belonging to this deployment. Each deployment
              # should be associated with one unique user_id.
            "A String",
          ],
        },
    ],
    "nextPageToken": "A String", # A pagination token returned from a previous call to
        # ListDeployments method that indicates
        # from where listing should continue. If the field is missing or empty, it
        # means there is no more deployments.
  }
list_next(previous_request, previous_response)
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.