Class GDCHardwareManagementClient (0.1.1)

GDCHardwareManagementClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.transports.base.GDCHardwareManagementTransport, typing.Callable[[...], google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.transports.base.GDCHardwareManagementTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)

The GDC Hardware Management service.

Properties

api_endpoint

Return the API endpoint used by the client instance.

Returns
Type Description
str The API endpoint used by the client instance.

transport

Returns the transport used by the client instance.

Returns
Type Description
GDCHardwareManagementTransport The transport used by the client instance.

universe_domain

Return the universe domain used by the client instance.

Returns
Type Description
str The universe domain used by the client instance.

Methods

GDCHardwareManagementClient

GDCHardwareManagementClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.transports.base.GDCHardwareManagementTransport, typing.Callable[[...], google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.transports.base.GDCHardwareManagementTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)

Instantiates the gdc hardware management client.

Parameters
Name Description
credentials Optional[google.auth.credentials.Credentials]

The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment.

transport Optional[Union[str,GDCHardwareManagementTransport,Callable[..., GDCHardwareManagementTransport]]]

The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the GDCHardwareManagementTransport constructor. If set to None, a transport is chosen automatically.

client_options Optional[Union[google.api_core.client_options.ClientOptions, dict]]

Custom options for the client. 1. The api_endpoint property can be used to override the default endpoint provided by the client when transport is not explicitly provided. Only if this property is not set and transport was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: "always" (always use the default mTLS endpoint), "never" (always use the default regular endpoint) and "auto" (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value). 2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "true", then the client_cert_source property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not set, no client certificate will be used. 3. The universe_domain property can be used to override the default "googleapis.com" universe. Note that the api_endpoint property still takes precedence; and universe_domain is currently not supported for mTLS.

client_info google.api_core.gapic_v1.client_info.ClientInfo

The client info used to send a user-agent string along with API requests. If None, then default info will be used. Generally, you only need to set this if you're developing your own client library.

Exceptions
Type Description
google.auth.exceptions.MutualTLSChannelError If mutual TLS transport creation failed for any reason.

__exit__

__exit__(type, value, traceback)

Releases underlying transport's resources.

cancel_operation

cancel_operation(
    request: typing.Optional[
        google.longrunning.operations_pb2.CancelOperationRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
request .operations_pb2.CancelOperationRequest

The request object. Request message for CancelOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

change_log_entry_path

change_log_entry_path(
    project: str, location: str, order: str, change_log_entry: str
) -> str

Returns a fully-qualified change_log_entry string.

comment_path

comment_path(project: str, location: str, order: str, comment: str) -> str

Returns a fully-qualified comment string.

common_billing_account_path

common_billing_account_path(billing_account: str) -> str

Returns a fully-qualified billing_account string.

common_folder_path

common_folder_path(folder: str) -> str

Returns a fully-qualified folder string.

common_location_path

common_location_path(project: str, location: str) -> str

Returns a fully-qualified location string.

common_organization_path

common_organization_path(organization: str) -> str

Returns a fully-qualified organization string.

common_project_path

common_project_path(project: str) -> str

Returns a fully-qualified project string.

create_comment

create_comment(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateCommentRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    comment: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Comment
    ] = None,
    comment_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates a new comment on an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_comment():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    comment = gdchardwaremanagement_v1alpha.Comment()
    comment.text = "text_value"

    request = gdchardwaremanagement_v1alpha.CreateCommentRequest(
        parent="parent_value",
        comment=comment,
    )

    # Make the request
    operation = client.create_comment(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateCommentRequest, dict]

The request object. A request to create a comment.

parent str

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

comment google.cloud.gdchardwaremanagement_v1alpha.types.Comment

Required. The comment to create. This corresponds to the comment field on the request instance; if request is provided, this should not be set.

comment_id str

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The comment.name field in the request will be ignored. This corresponds to the comment_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Comment A comment on an order.

create_hardware

create_hardware(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateHardwareRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    hardware: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Hardware
    ] = None,
    hardware_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates new hardware in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_hardware():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    hardware = gdchardwaremanagement_v1alpha.Hardware()
    hardware.order = "order_value"
    hardware.site = "site_value"
    hardware.config.sku = "sku_value"
    hardware.config.power_supply = "POWER_SUPPLY_DC"
    hardware.zone = "zone_value"

    request = gdchardwaremanagement_v1alpha.CreateHardwareRequest(
        parent="parent_value",
        hardware=hardware,
    )

    # Make the request
    operation = client.create_hardware(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateHardwareRequest, dict]

The request object. A request to create hardware.

parent str

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

hardware google.cloud.gdchardwaremanagement_v1alpha.types.Hardware

Required. The resource to create. This corresponds to the hardware field on the request instance; if request is provided, this should not be set.

hardware_id str

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The hardware.name field in the request will be ignored. This corresponds to the hardware_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Hardware An instance of hardware installed at a site.

create_hardware_group

create_hardware_group(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateHardwareGroupRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    hardware_group: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.HardwareGroup
    ] = None,
    hardware_group_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates a new hardware group in a given order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_hardware_group():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    hardware_group = gdchardwaremanagement_v1alpha.HardwareGroup()
    hardware_group.hardware_count = 1494
    hardware_group.config.sku = "sku_value"
    hardware_group.config.power_supply = "POWER_SUPPLY_DC"
    hardware_group.site = "site_value"

    request = gdchardwaremanagement_v1alpha.CreateHardwareGroupRequest(
        parent="parent_value",
        hardware_group=hardware_group,
    )

    # Make the request
    operation = client.create_hardware_group(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateHardwareGroupRequest, dict]

The request object. A request to create a hardware group.

parent str

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

hardware_group google.cloud.gdchardwaremanagement_v1alpha.types.HardwareGroup

Required. The hardware group to create. This corresponds to the hardware_group field on the request instance; if request is provided, this should not be set.

hardware_group_id str

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The hardware_group.name field in the request will be ignored. This corresponds to the hardware_group_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be HardwareGroup A group of hardware that is part of the same order, has the same SKU, and is delivered to the same site.

create_order

create_order(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateOrderRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    order: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Order
    ] = None,
    order_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates a new order in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_order():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    order = gdchardwaremanagement_v1alpha.Order()
    order.organization_contact.contacts.given_name = "given_name_value"
    order.organization_contact.contacts.email = "email_value"
    order.organization_contact.contacts.phone = "phone_value"
    order.customer_motivation = "customer_motivation_value"
    order.region_code = "region_code_value"
    order.billing_id = "billing_id_value"

    request = gdchardwaremanagement_v1alpha.CreateOrderRequest(
        parent="parent_value",
        order=order,
    )

    # Make the request
    operation = client.create_order(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateOrderRequest, dict]

The request object. A request to create an order.

parent str

Required. The project and location to create the order in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

order google.cloud.gdchardwaremanagement_v1alpha.types.Order

Required. The order to create. This corresponds to the order field on the request instance; if request is provided, this should not be set.

order_id str

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The order.name field in the request will be ignored. This corresponds to the order_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Order An order for GDC hardware.

create_site

create_site(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateSiteRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    site: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Site
    ] = None,
    site_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates a new site in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_site():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    site = gdchardwaremanagement_v1alpha.Site()
    site.organization_contact.contacts.given_name = "given_name_value"
    site.organization_contact.contacts.email = "email_value"
    site.organization_contact.contacts.phone = "phone_value"
    site.google_maps_pin_uri = "google_maps_pin_uri_value"

    request = gdchardwaremanagement_v1alpha.CreateSiteRequest(
        parent="parent_value",
        site=site,
    )

    # Make the request
    operation = client.create_site(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateSiteRequest, dict]

The request object. A request to create a site.

parent str

Required. The project and location to create the site in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

site google.cloud.gdchardwaremanagement_v1alpha.types.Site

Required. The site to create. This corresponds to the site field on the request instance; if request is provided, this should not be set.

site_id str

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The site.name field in the request will be ignored. This corresponds to the site_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Site A physical site where hardware will be installed.

create_zone

create_zone(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.CreateZoneRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    zone: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Zone
    ] = None,
    zone_id: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Creates a new zone in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_create_zone():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    zone = gdchardwaremanagement_v1alpha.Zone()
    zone.contacts.given_name = "given_name_value"
    zone.contacts.email = "email_value"
    zone.contacts.phone = "phone_value"

    request = gdchardwaremanagement_v1alpha.CreateZoneRequest(
        parent="parent_value",
        zone=zone,
    )

    # Make the request
    operation = client.create_zone(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.CreateZoneRequest, dict]

The request object. A request to create a zone.

parent str

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

zone google.cloud.gdchardwaremanagement_v1alpha.types.Zone

Required. The zone to create. This corresponds to the zone field on the request instance; if request is provided, this should not be set.

zone_id str

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set. The zone.name field in the request will be ignored. This corresponds to the zone_id field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Zone A zone holding a set of hardware.

delete_hardware

delete_hardware(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.DeleteHardwareRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Deletes hardware.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_delete_hardware():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.DeleteHardwareRequest(
        name="name_value",
    )

    # Make the request
    operation = client.delete_hardware(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.DeleteHardwareRequest, dict]

The request object. A request to delete hardware.

name str

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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); }

delete_hardware_group

delete_hardware_group(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.DeleteHardwareGroupRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Deletes a hardware group.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_delete_hardware_group():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.DeleteHardwareGroupRequest(
        name="name_value",
    )

    # Make the request
    operation = client.delete_hardware_group(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.DeleteHardwareGroupRequest, dict]

The request object. A request to delete a hardware group.

name str

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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); }

delete_operation

delete_operation(
    request: typing.Optional[
        google.longrunning.operations_pb2.DeleteOperationRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> None

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
request .operations_pb2.DeleteOperationRequest

The request object. Request message for DeleteOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

delete_order

delete_order(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.DeleteOrderRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Deletes an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_delete_order():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.DeleteOrderRequest(
        name="name_value",
    )

    # Make the request
    operation = client.delete_order(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.DeleteOrderRequest, dict]

The request object. A request to delete an order.

name str

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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); }

delete_zone

delete_zone(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.DeleteZoneRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Deletes a zone.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_delete_zone():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.DeleteZoneRequest(
        name="name_value",
    )

    # Make the request
    operation = client.delete_zone(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.DeleteZoneRequest, dict]

The request object. A request to delete a zone.

name str

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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); }

from_service_account_file

from_service_account_file(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameter
Name Description
filename str

The path to the service account private key json file.

Returns
Type Description
GDCHardwareManagementClient The constructed client.

from_service_account_info

from_service_account_info(info: dict, *args, **kwargs)

Creates an instance of this client using the provided credentials info.

Parameter
Name Description
info dict

The service account private key info.

Returns
Type Description
GDCHardwareManagementClient The constructed client.

from_service_account_json

from_service_account_json(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameter
Name Description
filename str

The path to the service account private key json file.

Returns
Type Description
GDCHardwareManagementClient The constructed client.

get_change_log_entry

get_change_log_entry(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetChangeLogEntryRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.ChangeLogEntry

Gets details of a change to an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_change_log_entry():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetChangeLogEntryRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_change_log_entry(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetChangeLogEntryRequest, dict]

The request object. A request to get a change log entry.

name str

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.ChangeLogEntry A log entry of a change made to an order.

get_comment

get_comment(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetCommentRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Comment

Gets the content of a comment.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_comment():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetCommentRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_comment(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetCommentRequest, dict]

The request object. A request to get a comment.

name str

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Comment A comment on an order.

get_hardware

get_hardware(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetHardwareRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Hardware

Gets hardware details.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_hardware():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetHardwareRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_hardware(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetHardwareRequest, dict]

The request object. A request to get hardware.

name str

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Hardware An instance of hardware installed at a site.

get_hardware_group

get_hardware_group(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetHardwareGroupRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.HardwareGroup

Gets details of a hardware group.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_hardware_group():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetHardwareGroupRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_hardware_group(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetHardwareGroupRequest, dict]

The request object. A request to get a hardware group.

name str

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.HardwareGroup A group of hardware that is part of the same order, has the same SKU, and is delivered to the same site.

get_location

get_location(
    request: typing.Optional[
        google.cloud.location.locations_pb2.GetLocationRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.Location

Gets information about a location.

Parameters
Name Description
request .location_pb2.GetLocationRequest

The request object. Request message for GetLocation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
.location_pb2.Location Location object.

get_mtls_endpoint_and_cert_source

get_mtls_endpoint_and_cert_source(
    client_options: typing.Optional[
        google.api_core.client_options.ClientOptions
    ] = None,
)

Deprecated. Return the API endpoint and client cert source for mutual TLS.

The client cert source is determined in the following order: (1) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not "true", the client cert source is None. (2) if client_options.client_cert_source is provided, use the provided one; if the default client cert source exists, use the default one; otherwise the client cert source is None.

The API endpoint is determined in the following order: (1) if client_options.api_endpoint if provided, use the provided one. (2) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "always", use the default mTLS endpoint; if the environment variable is "never", use the default API endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise use the default API endpoint.

More details can be found at https://google.aip.dev/auth/4114.

Parameter
Name Description
client_options google.api_core.client_options.ClientOptions

Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.

Exceptions
Type Description
google.auth.exceptions.MutualTLSChannelError If any errors happen.
Returns
Type Description
Tuple[str, Callable[[], Tuple[bytes, bytes]]] returns the API endpoint and the client cert source to use.

get_operation

get_operation(
    request: typing.Optional[
        google.longrunning.operations_pb2.GetOperationRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.Operation

Gets the latest state of a long-running operation.

Parameters
Name Description
request .operations_pb2.GetOperationRequest

The request object. Request message for GetOperation method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
.operations_pb2.Operation An Operation object.

get_order

get_order(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetOrderRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Order

Gets details of an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_order():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetOrderRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_order(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetOrderRequest, dict]

The request object. A request to get an order.

name str

Required. Name of the resource This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Order An order for GDC hardware.

get_site

get_site(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetSiteRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Site

Gets details of a site.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_site():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetSiteRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_site(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetSiteRequest, dict]

The request object. A request to get a site.

name str

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Site A physical site where hardware will be installed.

get_sku

get_sku(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetSkuRequest, dict
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Sku

Gets details of an SKU.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_sku():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetSkuRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_sku(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetSkuRequest, dict]

The request object. A request to get an SKU.

name str

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Sku A stock keeping unit (SKU) of GDC hardware.

get_zone

get_zone(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.GetZoneRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.gdchardwaremanagement_v1alpha.types.resources.Zone

Gets details of a zone.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_get_zone():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.GetZoneRequest(
        name="name_value",
    )

    # Make the request
    response = client.get_zone(request=request)

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.GetZoneRequest, dict]

The request object. A request to get a zone.

name str

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.types.Zone A zone holding a set of hardware.

hardware_group_path

hardware_group_path(
    project: str, location: str, order: str, hardware_group: str
) -> str

Returns a fully-qualified hardware_group string.

hardware_path

hardware_path(project: str, location: str, hardware: str) -> str

Returns a fully-qualified hardware string.

list_change_log_entries

list_change_log_entries(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListChangeLogEntriesRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListChangeLogEntriesPager
)

Lists the changes made to an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_change_log_entries():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListChangeLogEntriesRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_change_log_entries(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListChangeLogEntriesRequest, dict]

The request object. A request to list change log entries.

parent str

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListChangeLogEntriesPager A list of change log entries. Iterating over this object will yield results and resolve additional pages automatically.

list_comments

list_comments(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListCommentsRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListCommentsPager
)

Lists the comments on an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_comments():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListCommentsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_comments(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListCommentsRequest, dict]

The request object. A request to list comments.

parent str

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListCommentsPager A request to list comments. Iterating over this object will yield results and resolve additional pages automatically.

list_hardware

list_hardware(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListHardwareRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListHardwarePager
)

Lists hardware in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_hardware():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListHardwareRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_hardware(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListHardwareRequest, dict]

The request object. A request to list hardware.

parent str

Required. The project and location to list hardware in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListHardwarePager A list of hardware. Iterating over this object will yield results and resolve additional pages automatically.

list_hardware_groups

list_hardware_groups(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListHardwareGroupsRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListHardwareGroupsPager
)

Lists hardware groups in a given order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_hardware_groups():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListHardwareGroupsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_hardware_groups(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListHardwareGroupsRequest, dict]

The request object. A request to list hardware groups.

parent str

Required. The order to list hardware groups in. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListHardwareGroupsPager A list of hardware groups. Iterating over this object will yield results and resolve additional pages automatically.

list_locations

list_locations(
    request: typing.Optional[
        google.cloud.location.locations_pb2.ListLocationsRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponse

Lists information about the supported locations for this service.

Parameters
Name Description
request .location_pb2.ListLocationsRequest

The request object. Request message for ListLocations method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
.location_pb2.ListLocationsResponse Response message for ListLocations method.

list_operations

list_operations(
    request: typing.Optional[
        google.longrunning.operations_pb2.ListOperationsRequest
    ] = None,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponse

Lists operations that match the specified filter in the request.

Parameters
Name Description
request .operations_pb2.ListOperationsRequest

The request object. Request message for ListOperations method.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
.operations_pb2.ListOperationsResponse Response message for ListOperations method.

list_orders

list_orders(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListOrdersRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListOrdersPager
)

Lists orders in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_orders():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListOrdersRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_orders(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListOrdersRequest, dict]

The request object. A request to list orders.

parent str

Required. The project and location to list orders in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListOrdersPager A list of orders. Iterating over this object will yield results and resolve additional pages automatically.

list_sites

list_sites(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListSitesRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListSitesPager
)

Lists sites in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_sites():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListSitesRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_sites(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListSitesRequest, dict]

The request object. A request to list sites.

parent str

Required. The project and location to list sites in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListSitesPager A list of sites. Iterating over this object will yield results and resolve additional pages automatically.

list_skus

list_skus(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListSkusRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListSkusPager
)

Lists SKUs for a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_skus():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListSkusRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_skus(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListSkusRequest, dict]

The request object. A request to list SKUs.

parent str

Required. The project and location to list SKUs in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListSkusPager A list of SKUs. Iterating over this object will yield results and resolve additional pages automatically.

list_zones

list_zones(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.ListZonesRequest,
            dict,
        ]
    ] = None,
    *,
    parent: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> (
    google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListZonesPager
)

Lists zones in a given project and location.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_list_zones():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.ListZonesRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_zones(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.ListZonesRequest, dict]

The request object. A request to list zones.

parent str

Required. The project and location to list zones in. Format: projects/{project}/locations/{location} This corresponds to the parent field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.cloud.gdchardwaremanagement_v1alpha.services.gdc_hardware_management.pagers.ListZonesPager A list of zones. Iterating over this object will yield results and resolve additional pages automatically.

order_path

order_path(project: str, location: str, order: str) -> str

Returns a fully-qualified order string.

parse_change_log_entry_path

parse_change_log_entry_path(path: str) -> typing.Dict[str, str]

Parses a change_log_entry path into its component segments.

parse_comment_path

parse_comment_path(path: str) -> typing.Dict[str, str]

Parses a comment path into its component segments.

parse_common_billing_account_path

parse_common_billing_account_path(path: str) -> typing.Dict[str, str]

Parse a billing_account path into its component segments.

parse_common_folder_path

parse_common_folder_path(path: str) -> typing.Dict[str, str]

Parse a folder path into its component segments.

parse_common_location_path

parse_common_location_path(path: str) -> typing.Dict[str, str]

Parse a location path into its component segments.

parse_common_organization_path

parse_common_organization_path(path: str) -> typing.Dict[str, str]

Parse a organization path into its component segments.

parse_common_project_path

parse_common_project_path(path: str) -> typing.Dict[str, str]

Parse a project path into its component segments.

parse_hardware_group_path

parse_hardware_group_path(path: str) -> typing.Dict[str, str]

Parses a hardware_group path into its component segments.

parse_hardware_path

parse_hardware_path(path: str) -> typing.Dict[str, str]

Parses a hardware path into its component segments.

parse_order_path

parse_order_path(path: str) -> typing.Dict[str, str]

Parses a order path into its component segments.

parse_site_path

parse_site_path(path: str) -> typing.Dict[str, str]

Parses a site path into its component segments.

parse_sku_path

parse_sku_path(path: str) -> typing.Dict[str, str]

Parses a sku path into its component segments.

parse_zone_path

parse_zone_path(path: str) -> typing.Dict[str, str]

Parses a zone path into its component segments.

signal_zone_state

signal_zone_state(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.SignalZoneStateRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    state_signal: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.service.SignalZoneStateRequest.StateSignal
    ] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Signals the state of a zone.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_signal_zone_state():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.SignalZoneStateRequest(
        name="name_value",
        state_signal="FACTORY_TURNUP_CHECKS_FAILED",
    )

    # Make the request
    operation = client.signal_zone_state(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.SignalZoneStateRequest, dict]

The request object. A request to signal the state of a zone.

name str

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone} This corresponds to the name field on the request instance; if request is provided, this should not be set.

state_signal google.cloud.gdchardwaremanagement_v1alpha.types.SignalZoneStateRequest.StateSignal

Required. The state signal to send for this zone. This corresponds to the state_signal field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Zone A zone holding a set of hardware.

site_path

site_path(project: str, location: str, site: str) -> str

Returns a fully-qualified site string.

sku_path

sku_path(project: str, location: str, sku: str) -> str

Returns a fully-qualified sku string.

submit_order

submit_order(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.SubmitOrderRequest,
            dict,
        ]
    ] = None,
    *,
    name: typing.Optional[str] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Submits an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_submit_order():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    request = gdchardwaremanagement_v1alpha.SubmitOrderRequest(
        name="name_value",
    )

    # Make the request
    operation = client.submit_order(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.SubmitOrderRequest, dict]

The request object. A request to submit an order.

name str

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order} This corresponds to the name field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Order An order for GDC hardware.

update_hardware

update_hardware(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.UpdateHardwareRequest,
            dict,
        ]
    ] = None,
    *,
    hardware: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Hardware
    ] = None,
    update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Updates hardware parameters.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_update_hardware():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    hardware = gdchardwaremanagement_v1alpha.Hardware()
    hardware.order = "order_value"
    hardware.site = "site_value"
    hardware.config.sku = "sku_value"
    hardware.config.power_supply = "POWER_SUPPLY_DC"
    hardware.zone = "zone_value"

    request = gdchardwaremanagement_v1alpha.UpdateHardwareRequest(
        hardware=hardware,
    )

    # Make the request
    operation = client.update_hardware(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.UpdateHardwareRequest, dict]

The request object. A request to update hardware.

hardware google.cloud.gdchardwaremanagement_v1alpha.types.Hardware

Required. The hardware to update. This corresponds to the hardware field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

Required. A mask to specify the fields in the Hardware to overwrite with this update. The fields specified in the update_mask are relative to the hardware, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Hardware An instance of hardware installed at a site.

update_hardware_group

update_hardware_group(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.UpdateHardwareGroupRequest,
            dict,
        ]
    ] = None,
    *,
    hardware_group: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.HardwareGroup
    ] = None,
    update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Updates the parameters of a hardware group.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_update_hardware_group():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    hardware_group = gdchardwaremanagement_v1alpha.HardwareGroup()
    hardware_group.hardware_count = 1494
    hardware_group.config.sku = "sku_value"
    hardware_group.config.power_supply = "POWER_SUPPLY_DC"
    hardware_group.site = "site_value"

    request = gdchardwaremanagement_v1alpha.UpdateHardwareGroupRequest(
        hardware_group=hardware_group,
    )

    # Make the request
    operation = client.update_hardware_group(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.UpdateHardwareGroupRequest, dict]

The request object. A request to update a hardware group.

hardware_group google.cloud.gdchardwaremanagement_v1alpha.types.HardwareGroup

Required. The hardware group to update. This corresponds to the hardware_group field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

Required. A mask to specify the fields in the HardwareGroup to overwrite with this update. The fields specified in the update_mask are relative to the hardware group, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be HardwareGroup A group of hardware that is part of the same order, has the same SKU, and is delivered to the same site.

update_order

update_order(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.UpdateOrderRequest,
            dict,
        ]
    ] = None,
    *,
    order: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Order
    ] = None,
    update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Updates the parameters of an order.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_update_order():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    order = gdchardwaremanagement_v1alpha.Order()
    order.organization_contact.contacts.given_name = "given_name_value"
    order.organization_contact.contacts.email = "email_value"
    order.organization_contact.contacts.phone = "phone_value"
    order.customer_motivation = "customer_motivation_value"
    order.region_code = "region_code_value"
    order.billing_id = "billing_id_value"

    request = gdchardwaremanagement_v1alpha.UpdateOrderRequest(
        order=order,
    )

    # Make the request
    operation = client.update_order(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.UpdateOrderRequest, dict]

The request object. A request to update an order.

order google.cloud.gdchardwaremanagement_v1alpha.types.Order

Required. The order to update. This corresponds to the order field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

Required. A mask to specify the fields in the Order to overwrite with this update. The fields specified in the update_mask are relative to the order, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Order An order for GDC hardware.

update_site

update_site(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.UpdateSiteRequest,
            dict,
        ]
    ] = None,
    *,
    site: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Site
    ] = None,
    update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Updates the parameters of a site.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_update_site():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    site = gdchardwaremanagement_v1alpha.Site()
    site.organization_contact.contacts.given_name = "given_name_value"
    site.organization_contact.contacts.email = "email_value"
    site.organization_contact.contacts.phone = "phone_value"
    site.google_maps_pin_uri = "google_maps_pin_uri_value"

    request = gdchardwaremanagement_v1alpha.UpdateSiteRequest(
        site=site,
    )

    # Make the request
    operation = client.update_site(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.UpdateSiteRequest, dict]

The request object. A request to update a site.

site google.cloud.gdchardwaremanagement_v1alpha.types.Site

Required. The site to update. This corresponds to the site field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

Required. A mask to specify the fields in the Site to overwrite with this update. The fields specified in the update_mask are relative to the site, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Site A physical site where hardware will be installed.

update_zone

update_zone(
    request: typing.Optional[
        typing.Union[
            google.cloud.gdchardwaremanagement_v1alpha.types.service.UpdateZoneRequest,
            dict,
        ]
    ] = None,
    *,
    zone: typing.Optional[
        google.cloud.gdchardwaremanagement_v1alpha.types.resources.Zone
    ] = None,
    update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
) -> google.api_core.operation.Operation

Updates the parameters of a zone.

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import gdchardwaremanagement_v1alpha

def sample_update_zone():
    # Create a client
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()

    # Initialize request argument(s)
    zone = gdchardwaremanagement_v1alpha.Zone()
    zone.contacts.given_name = "given_name_value"
    zone.contacts.email = "email_value"
    zone.contacts.phone = "phone_value"

    request = gdchardwaremanagement_v1alpha.UpdateZoneRequest(
        zone=zone,
    )

    # Make the request
    operation = client.update_zone(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Parameters
Name Description
request Union[google.cloud.gdchardwaremanagement_v1alpha.types.UpdateZoneRequest, dict]

The request object. A request to update a zone.

zone google.cloud.gdchardwaremanagement_v1alpha.types.Zone

Required. The zone to update. This corresponds to the zone field on the request instance; if request is provided, this should not be set.

update_mask google.protobuf.field_mask_pb2.FieldMask

Required. A mask to specify the fields in the Zone to overwrite with this update. The fields specified in the update_mask are relative to the zone, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten. This corresponds to the update_mask field on the request instance; if request is provided, this should not be set.

retry google.api_core.retry.Retry

Designation of what errors, if any, should be retried.

timeout float

The timeout for this request.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.

Returns
Type Description
google.api_core.operation.Operation An object representing a long-running operation. The result type for the operation will be Zone A zone holding a set of hardware.

zone_path

zone_path(project: str, location: str, zone: str) -> str

Returns a fully-qualified zone string.