Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
FleetResource,
FleetResourceUpdate,
FleetspaceAccountListResult,
FleetspaceAccountPropertiesGlobalDatabaseAccountProperties,
FleetspaceAccountResource,
FleetspaceListResult,
FleetspacePropertiesThroughputPoolConfiguration,
Expand Down Expand Up @@ -646,6 +647,7 @@
"FleetResource",
"FleetResourceUpdate",
"FleetspaceAccountListResult",
"FleetspaceAccountPropertiesGlobalDatabaseAccountProperties",
"FleetspaceAccountResource",
"FleetspaceListResult",
"FleetspacePropertiesThroughputPoolConfiguration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7952,6 +7952,34 @@ def __init__(self, **kwargs: Any) -> None:
self.next_link: Optional[str] = None


class FleetspaceAccountPropertiesGlobalDatabaseAccountProperties(_serialization.Model): # pylint: disable=name-too-long
"""Configuration for fleetspace Account in the fleetspace.

:ivar resource_id: The resource identifier of global database account in the Fleetspace
Account.
:vartype resource_id: str
:ivar arm_location: The location of global database account in the Fleetspace Account.
Comment on lines +7956 to +7961
Copy link

Copilot AI May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The class docstring is phrased as 'Configuration for fleetspace Account in the fleetspace.' Consider rewording for clarity and consistent capitalization, e.g., 'Configuration for a global database account in the Fleetspace account.'

Suggested change
"""Configuration for fleetspace Account in the fleetspace.
:ivar resource_id: The resource identifier of global database account in the Fleetspace
Account.
:vartype resource_id: str
:ivar arm_location: The location of global database account in the Fleetspace Account.
"""Configuration for a global database account in the Fleetspace account.
:ivar resource_id: The resource identifier of the global database account in the Fleetspace
account.
:vartype resource_id: str
:ivar arm_location: The location of the global database account in the Fleetspace account.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra space between 'of' and 'global'. Please remove the double space for consistency.

Suggested change
:ivar arm_location: The location of global database account in the Fleetspace Account.
:ivar arm_location: The location of global database account in the Fleetspace Account.

Copilot uses AI. Check for mistakes.
:vartype arm_location: str
"""

_attribute_map = {
"resource_id": {"key": "resourceId", "type": "str"},
"arm_location": {"key": "armLocation", "type": "str"},
}

def __init__(self, *, resource_id: Optional[str] = None, arm_location: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword resource_id: The resource identifier of global database account in the Fleetspace
Account.
:paramtype resource_id: str
:keyword arm_location: The location of global database account in the Fleetspace Account.
:paramtype arm_location: str
"""
super().__init__(**kwargs)
self.resource_id = resource_id
self.arm_location = arm_location


class FleetspaceAccountResource(ProxyResource):
"""An Azure Cosmos DB Fleetspace Account.

Expand All @@ -7972,11 +8000,10 @@ class FleetspaceAccountResource(ProxyResource):
"Uninitialized", "Initializing", "InternallyReady", "Online", "Deleting", "Succeeded",
"Failed", "Canceled", "Updating", and "Creating".
:vartype provisioning_state: str or ~azure.mgmt.cosmosdb.models.Status
:ivar account_resource_identifier: The resource identifier of global database account in the
Fleetspace Account.
:vartype account_resource_identifier: str
:ivar account_location: The location of global database account in the Fleetspace Account.
:vartype account_location: str
:ivar global_database_account_properties: Configuration for fleetspace Account in the
fleetspace.
:vartype global_database_account_properties:
~azure.mgmt.cosmosdb.models.FleetspaceAccountPropertiesGlobalDatabaseAccountProperties
"""

_validation = {
Expand All @@ -7992,33 +8019,34 @@ class FleetspaceAccountResource(ProxyResource):
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"account_resource_identifier": {"key": "properties.accountResourceIdentifier", "type": "str"},
"account_location": {"key": "properties.accountLocation", "type": "str"},
"global_database_account_properties": {
"key": "properties.globalDatabaseAccountProperties",
"type": "FleetspaceAccountPropertiesGlobalDatabaseAccountProperties",
},
}

def __init__(
self,
*,
provisioning_state: Optional[Union[str, "_models.Status"]] = None,
account_resource_identifier: Optional[str] = None,
account_location: Optional[str] = None,
global_database_account_properties: Optional[
"_models.FleetspaceAccountPropertiesGlobalDatabaseAccountProperties"
] = None,
**kwargs: Any
) -> None:
"""
:keyword provisioning_state: A provisioning state of the Fleetspace Account. Known values are:
"Uninitialized", "Initializing", "InternallyReady", "Online", "Deleting", "Succeeded",
"Failed", "Canceled", "Updating", and "Creating".
:paramtype provisioning_state: str or ~azure.mgmt.cosmosdb.models.Status
:keyword account_resource_identifier: The resource identifier of global database account in the
Fleetspace Account.
:paramtype account_resource_identifier: str
:keyword account_location: The location of global database account in the Fleetspace Account.
:paramtype account_location: str
:keyword global_database_account_properties: Configuration for fleetspace Account in the
fleetspace.
:paramtype global_database_account_properties:
~azure.mgmt.cosmosdb.models.FleetspaceAccountPropertiesGlobalDatabaseAccountProperties
"""
super().__init__(**kwargs)
self.provisioning_state = provisioning_state
self.account_resource_identifier = account_resource_identifier
self.account_location = account_location
self.global_database_account_properties = global_database_account_properties


class FleetspaceListResult(_serialization.Model):
Expand Down
Loading