diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/CHANGELOG.md b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/CHANGELOG.md index 371bb147b9b5..620a38e5d618 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/CHANGELOG.md +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/CHANGELOG.md @@ -1,7 +1,13 @@ # Release History +## 1.0.0 (2026-08-13) + +### Other Changes + + - First GA + ## 1.0.0b1 (2026-06-12) ### Other Changes - - Initial version \ No newline at end of file + - Initial version diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/_metadata.json b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/_metadata.json index 58ecbe02fc25..de095ca22867 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/_metadata.json +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2025-12-24-preview", + "apiVersion": "2026-08-11", "apiVersions": { - "Napster.CompanionAPI": "2025-12-24-preview" + "Napster.CompanionAPI": "2026-08-11" }, - "commit": "fdb904690da515aa8449471145922a90b666bbe8", + "commit": "e9b8d33567e9422a09711667279fe178fada51a1", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/napster/Napster.CompanionAPI.Management", - "emitterVersion": "0.63.1", - "httpClientPythonVersion": "^0.31.1" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.35.1" } \ No newline at end of file diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.md b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.md new file mode 100644 index 000000000000..edaaf87e247b --- /dev/null +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.md @@ -0,0 +1,1019 @@ +```py +namespace azure.mgmt.napsteromniagentapi + + class azure.mgmt.napsteromniagentapi.NapsterOmniAgentApiMgmtClient: implements ContextManager + operations: Operations + organizations: OrganizationsOperations + saa_soperation_group: SaaSOperationGroupOperations + + def __init__( + self, + credential: TokenCredential, + subscription_id: str, + base_url: Optional[str] = None, + *, + api_version: str = ..., + cloud_setting: Optional[AzureClouds] = ..., + polling_interval: Optional[int] = ..., + **kwargs: Any + ) -> None: ... + + def close(self) -> None: ... + + def send_request( + self, + request: HttpRequest, + *, + stream: bool = False, + **kwargs: Any + ) -> HttpResponse: ... + + +namespace azure.mgmt.napsteromniagentapi.aio + + class azure.mgmt.napsteromniagentapi.aio.NapsterOmniAgentApiMgmtClient: implements AsyncContextManager + operations: Operations + organizations: OrganizationsOperations + saa_soperation_group: SaaSOperationGroupOperations + + def __init__( + self, + credential: AsyncTokenCredential, + subscription_id: str, + base_url: Optional[str] = None, + *, + api_version: str = ..., + cloud_setting: Optional[AzureClouds] = ..., + polling_interval: Optional[int] = ..., + **kwargs: Any + ) -> None: ... + + async def close(self) -> None: ... + + def send_request( + self, + request: HttpRequest, + *, + stream: bool = False, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: ... + + +namespace azure.mgmt.napsteromniagentapi.aio.operations + + class azure.mgmt.napsteromniagentapi.aio.operations.Operations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged[Operation]: ... + + + class azure.mgmt.napsteromniagentapi.aio.operations.OrganizationsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: OrganizationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: OrganizationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: SaaSData, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: SaaSData, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: OrganizationResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: OrganizationResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[OrganizationResource]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> OrganizationResource: ... + + @distributed_trace_async + async def latest_linked_saa_s( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> LatestLinkedSaaSResponse: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[OrganizationResource]: ... + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged[OrganizationResource]: ... + + + class azure.mgmt.napsteromniagentapi.aio.operations.SaaSOperationGroupOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_activate_resource( + self, + body: ActivateSaaSParameterRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[SaaSResourceDetailsResponse]: ... + + @overload + async def begin_activate_resource( + self, + body: ActivateSaaSParameterRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[SaaSResourceDetailsResponse]: ... + + @overload + async def begin_activate_resource( + self, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[SaaSResourceDetailsResponse]: ... + + +namespace azure.mgmt.napsteromniagentapi.models + + class azure.mgmt.napsteromniagentapi.models.ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + INTERNAL = "Internal" + + + class azure.mgmt.napsteromniagentapi.models.ActivateSaaSParameterRequest(_Model): + publisher_id: Optional[str] + saas_guid: str + + @overload + def __init__( + self, + *, + publisher_id: Optional[str] = ..., + saas_guid: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + APPLICATION = "Application" + KEY = "Key" + MANAGED_IDENTITY = "ManagedIdentity" + USER = "User" + + + class azure.mgmt.napsteromniagentapi.models.ErrorAdditionalInfo(_Model): + info: Optional[Any] + type: Optional[str] + + + class azure.mgmt.napsteromniagentapi.models.ErrorDetail(_Model): + additional_info: Optional[list[ErrorAdditionalInfo]] + code: Optional[str] + details: Optional[list[ErrorDetail]] + message: Optional[str] + target: Optional[str] + + + class azure.mgmt.napsteromniagentapi.models.ErrorResponse(_Model): + error: Optional[ErrorDetail] + + @overload + def __init__( + self, + *, + error: Optional[ErrorDetail] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.LatestLinkedSaaSResponse(_Model): + is_hidden_saa_s: Optional[bool] + saa_s_resource_id: Optional[str] + + @overload + def __init__( + self, + *, + is_hidden_saa_s: Optional[bool] = ..., + saa_s_resource_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.ManagedServiceIdentity(_Model): + principal_id: Optional[str] + tenant_id: Optional[str] + type: Union[str, ManagedServiceIdentityType] + user_assigned_identities: Optional[dict[str, UserAssignedIdentity]] + + @overload + def __init__( + self, + *, + type: Union[str, ManagedServiceIdentityType], + user_assigned_identities: Optional[dict[str, UserAssignedIdentity]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + USER_ASSIGNED = "UserAssigned" + + + class azure.mgmt.napsteromniagentapi.models.MarketplaceDetails(_Model): + offer_details: OfferDetails + saas_resource_id: Optional[str] + subscription_id: Optional[str] + subscription_status: Optional[Union[str, MarketplaceSubscriptionStatus]] + + @overload + def __init__( + self, + *, + offer_details: OfferDetails, + saas_resource_id: Optional[str] = ..., + subscription_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.MarketplaceSubscriptionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + PENDING_FULFILLMENT_START = "PendingFulfillmentStart" + SUBSCRIBED = "Subscribed" + SUSPENDED = "Suspended" + UNSUBSCRIBED = "Unsubscribed" + + + class azure.mgmt.napsteromniagentapi.models.OfferDetails(_Model): + offer_id: str + plan_id: Optional[str] + plan_name: Optional[str] + publisher_id: str + term_id: Optional[str] + term_unit: Optional[str] + + @overload + def __init__( + self, + *, + offer_id: str, + plan_id: Optional[str] = ..., + plan_name: Optional[str] = ..., + publisher_id: str, + term_id: Optional[str] = ..., + term_unit: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.Operation(_Model): + action_type: Optional[Union[str, ActionType]] + display: Optional[OperationDisplay] + is_data_action: Optional[bool] + name: Optional[str] + origin: Optional[Union[str, Origin]] + + @overload + def __init__( + self, + *, + display: Optional[OperationDisplay] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.OperationDisplay(_Model): + description: Optional[str] + operation: Optional[str] + provider: Optional[str] + resource: Optional[str] + + + class azure.mgmt.napsteromniagentapi.models.OrganizationProperties(_Model): + marketplace: MarketplaceDetails + partner_properties: PartnerProperties + provisioning_state: Optional[Union[str, ResourceProvisioningState]] + single_sign_on_properties: Optional[SingleSignOnPropertiesV2] + user: UserDetails + + @overload + def __init__( + self, + *, + marketplace: MarketplaceDetails, + partner_properties: PartnerProperties, + single_sign_on_properties: Optional[SingleSignOnPropertiesV2] = ..., + user: UserDetails + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.OrganizationResource(TrackedResource): + id: str + identity: Optional[ManagedServiceIdentity] + location: str + name: str + properties: Optional[OrganizationProperties] + system_data: SystemData + tags: dict[str, str] + type: str + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + location: str, + properties: Optional[OrganizationProperties] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.OrganizationResourceUpdate(_Model): + identity: Optional[ManagedServiceIdentity] + tags: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta): + SYSTEM = "system" + USER = "user" + USER_SYSTEM = "user,system" + + + class azure.mgmt.napsteromniagentapi.models.PartnerProperties(_Model): + application: str + + @overload + def __init__( + self, + *, + application: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.ProxyResource(Resource): + id: str + name: str + system_data: SystemData + type: str + + + class azure.mgmt.napsteromniagentapi.models.Resource(_Model): + id: Optional[str] + name: Optional[str] + system_data: Optional[SystemData] + type: Optional[str] + + + class azure.mgmt.napsteromniagentapi.models.ResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CANCELED = "Canceled" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + + + class azure.mgmt.napsteromniagentapi.models.SaaSData(_Model): + saa_s_resource_id: Optional[str] + + @overload + def __init__( + self, + *, + saa_s_resource_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.SaaSResourceDetailsResponse(ProxyResource): + id: str + name: str + saas_id: Optional[str] + system_data: SystemData + type: str + + @overload + def __init__( + self, + *, + saas_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.SingleSignOnPropertiesV2(_Model): + aad_domains: Optional[list[str]] + enterprise_app_id: Optional[str] + state: Optional[Union[str, SingleSignOnStates]] + type: Union[str, SingleSignOnType] + url: Optional[str] + + @overload + def __init__( + self, + *, + aad_domains: Optional[list[str]] = ..., + enterprise_app_id: Optional[str] = ..., + state: Optional[Union[str, SingleSignOnStates]] = ..., + type: Union[str, SingleSignOnType], + url: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.SingleSignOnStates(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DISABLE = "Disable" + ENABLE = "Enable" + INITIAL = "Initial" + + + class azure.mgmt.napsteromniagentapi.models.SingleSignOnType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + OPEN_ID = "OpenId" + SAML = "Saml" + + + class azure.mgmt.napsteromniagentapi.models.SystemData(_Model): + created_at: Optional[datetime] + created_by: Optional[str] + created_by_type: Optional[Union[str, CreatedByType]] + last_modified_at: Optional[datetime] + last_modified_by: Optional[str] + last_modified_by_type: Optional[Union[str, CreatedByType]] + + @overload + def __init__( + self, + *, + created_at: Optional[datetime] = ..., + created_by: Optional[str] = ..., + created_by_type: Optional[Union[str, CreatedByType]] = ..., + last_modified_at: Optional[datetime] = ..., + last_modified_by: Optional[str] = ..., + last_modified_by_type: Optional[Union[str, CreatedByType]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.TrackedResource(Resource): + id: str + location: str + name: str + system_data: SystemData + tags: Optional[dict[str, str]] + type: str + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.napsteromniagentapi.models.UserAssignedIdentity(_Model): + client_id: Optional[str] + principal_id: Optional[str] + + + class azure.mgmt.napsteromniagentapi.models.UserDetails(_Model): + email_address: Optional[str] + first_name: Optional[str] + last_name: Optional[str] + phone_number: Optional[str] + upn: Optional[str] + + @overload + def __init__( + self, + *, + email_address: Optional[str] = ..., + first_name: Optional[str] = ..., + last_name: Optional[str] = ..., + phone_number: Optional[str] = ..., + upn: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + +namespace azure.mgmt.napsteromniagentapi.operations + + class azure.mgmt.napsteromniagentapi.operations.Operations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged[Operation]: ... + + + class azure.mgmt.napsteromniagentapi.operations.OrganizationsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: OrganizationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: OrganizationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + organizationname: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: SaaSData, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: SaaSData, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_link_saa_s( + self, + resource_group_name: str, + organizationname: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: OrganizationResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: OrganizationResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + organizationname: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[OrganizationResource]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> OrganizationResource: ... + + @distributed_trace + def latest_linked_saa_s( + self, + resource_group_name: str, + organizationname: str, + **kwargs: Any + ) -> LatestLinkedSaaSResponse: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[OrganizationResource]: ... + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged[OrganizationResource]: ... + + + class azure.mgmt.napsteromniagentapi.operations.SaaSOperationGroupOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_activate_resource( + self, + body: ActivateSaaSParameterRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[SaaSResourceDetailsResponse]: ... + + @overload + def begin_activate_resource( + self, + body: ActivateSaaSParameterRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[SaaSResourceDetailsResponse]: ... + + @overload + def begin_activate_resource( + self, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[SaaSResourceDetailsResponse]: ... + + +namespace azure.mgmt.napsteromniagentapi.types + + class azure.mgmt.napsteromniagentapi.types.ActivateSaaSParameterRequest(TypedDict, total=False): + key "publisherId": str + key "saasGuid": Required[str] + publisherId: str + saasGuid: str + + + class azure.mgmt.napsteromniagentapi.types.ManagedServiceIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Required[Union[str, ManagedServiceIdentityType]] + principalId: str + tenantId: str + type: Union[str, ManagedServiceIdentityType] + userAssignedIdentities: dict[str, UserAssignedIdentity] + + + class azure.mgmt.napsteromniagentapi.types.MarketplaceDetails(TypedDict, total=False): + key "offerDetails": Required[OfferDetails] + key "saasResourceId": str + key "subscriptionId": str + key "subscriptionStatus": Union[str, MarketplaceSubscriptionStatus] + offerDetails: OfferDetails + saasResourceId: str + subscriptionId: str + subscriptionStatus: Union[str, MarketplaceSubscriptionStatus] + + + class azure.mgmt.napsteromniagentapi.types.OfferDetails(TypedDict, total=False): + key "offerId": Required[str] + key "planId": str + key "planName": str + key "publisherId": Required[str] + key "termId": str + key "termUnit": str + offerId: str + planId: str + planName: str + publisherId: str + termId: str + termUnit: str + + + class azure.mgmt.napsteromniagentapi.types.OrganizationProperties(TypedDict, total=False): + key "marketplace": Required[MarketplaceDetails] + key "partnerProperties": Required[PartnerProperties] + key "provisioningState": Union[str, ResourceProvisioningState] + key "singleSignOnProperties": ForwardRef('SingleSignOnPropertiesV2', module='types') + key "user": Required[UserDetails] + marketplace: MarketplaceDetails + partnerProperties: PartnerProperties + provisioningState: Union[str, ResourceProvisioningState] + singleSignOnProperties: SingleSignOnPropertiesV2 + user: UserDetails + + + class azure.mgmt.napsteromniagentapi.types.OrganizationResource(TrackedResource): + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": Required[str] + key "name": str + key "properties": ForwardRef('OrganizationProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: OrganizationProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.napsteromniagentapi.types.OrganizationResourceUpdate(TypedDict, total=False): + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + identity: ManagedServiceIdentity + tags: dict[str, str] + + + class azure.mgmt.napsteromniagentapi.types.PartnerProperties(TypedDict, total=False): + key "application": Required[str] + application: str + + + class azure.mgmt.napsteromniagentapi.types.Resource(TypedDict, total=False): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.napsteromniagentapi.types.SaaSData(TypedDict, total=False): + key "saaSResourceId": str + saaSResourceId: str + + + class azure.mgmt.napsteromniagentapi.types.SingleSignOnPropertiesV2(TypedDict, total=False): + key "enterpriseAppId": str + key "state": Union[str, SingleSignOnStates] + key "type": Required[Union[str, SingleSignOnType]] + key "url": str + aadDomains: list[str] + enterpriseAppId: str + state: Union[str, SingleSignOnStates] + type: Union[str, SingleSignOnType] + url: str + + + class azure.mgmt.napsteromniagentapi.types.SystemData(TypedDict, total=False): + key "createdAt": str + key "createdBy": str + key "createdByType": Union[str, CreatedByType] + key "lastModifiedAt": str + key "lastModifiedBy": str + key "lastModifiedByType": Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] + + + class azure.mgmt.napsteromniagentapi.types.TrackedResource(Resource): + key "id": str + key "location": Required[str] + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.napsteromniagentapi.types.UserAssignedIdentity(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.napsteromniagentapi.types.UserDetails(TypedDict, total=False): + key "emailAddress": str + key "firstName": str + key "lastName": str + key "phoneNumber": str + key "upn": str + emailAddress: str + firstName: str + lastName: str + phoneNumber: str + upn: str + + +``` \ No newline at end of file diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.metadata.yml b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.metadata.yml new file mode 100644 index 000000000000..e03363ff90cb --- /dev/null +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/api.metadata.yml @@ -0,0 +1,3 @@ +apiMdSha256: c1f1d5ae6b3fd0dd401d8e174d3afb5fdcd97152084c577b5aac54ff597eaa76 +parserVersion: 0.3.31 +pythonVersion: 3.13.14 diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/apiview-properties.json b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/apiview-properties.json index f7cfb86f8cdf..dc895e879712 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/apiview-properties.json +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/apiview-properties.json @@ -53,5 +53,5 @@ "azure.mgmt.napsteromniagentapi.operations.SaaSOperationGroupOperations.begin_activate_resource": "Napster.CompanionAPI.SaaSOperationGroup.activateResource", "azure.mgmt.napsteromniagentapi.aio.operations.SaaSOperationGroupOperations.begin_activate_resource": "Napster.CompanionAPI.SaaSOperationGroup.activateResource" }, - "CrossLanguageVersion": "198697443c25" + "CrossLanguageVersion": "4dd098844fb3" } \ No newline at end of file diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_client.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_client.py index ebdc5457a81f..4cfd64dd7979 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_client.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_client.py @@ -31,7 +31,7 @@ from azure.core.credentials import TokenCredential -class NapsterOmniAgentApiMgmtClient: +class NapsterOmniAgentApiMgmtClient: # pylint: disable=docstring-keyword-should-match-keyword-only """NapsterOmniAgentApiMgmtClient. :ivar operations: Operations operations @@ -50,10 +50,9 @@ class NapsterOmniAgentApiMgmtClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are - "2025-12-24-preview" and None. Default value is None. If not set, the operation's default API - version will be used. Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Known values are "2026-08-11" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_configuration.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_configuration.py index cb6ea8e36f4e..797efa8fb23c 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_configuration.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for NapsterOmniAgentApiMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,10 +34,9 @@ class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-in :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are - "2025-12-24-preview" and None. Default value is None. If not set, the operation's default API - version will be used. Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Known values are "2026-08-11" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-12-24-preview") + api_version: str = kwargs.pop("api_version", "2026-08-11") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/model_base.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/model_base.py index d725c55906d3..35d5fc024978 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/model_base.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/model_base.py @@ -109,6 +109,29 @@ def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: return encoded +def _serialize_duration(td: timedelta, format: typing.Optional[str] = None): + """Serialize a timedelta to its wire representation. + + For the ``seconds``/``milliseconds`` encodings the value is converted to a + numeric value, otherwise it falls back to an ISO 8601 duration string. + + :param timedelta td: The timedelta to serialize. + :param str format: The duration encoding format. + :rtype: int or float or str + :return: serialized duration + """ + seconds = td.total_seconds() + if format == "duration-seconds-int": + return int(seconds) + if format == "duration-seconds-float": + return seconds + if format == "duration-milliseconds-int": + return int(seconds * 1000) + if format == "duration-milliseconds-float": + return seconds * 1000 + return _timedelta_as_isostr(td) + + def _serialize_datetime(o, format: typing.Optional[str] = None): if hasattr(o, "year") and hasattr(o, "hour"): if format == "rfc7231": @@ -135,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -301,6 +332,12 @@ def _deserialize_duration(attr): return isodate.parse_duration(attr) +def _deserialize_duration_numeric(attr, unit): + if isinstance(attr, timedelta): + return attr + return timedelta(**{unit: float(attr)}) + + def _deserialize_decimal(attr): if isinstance(attr, decimal.Decimal): return attr @@ -313,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -330,12 +373,18 @@ def _deserialize_int_as_str(attr): "unix-timestamp": _deserialize_datetime_unix_timestamp, "base64": _deserialize_bytes, "base64url": _deserialize_bytes_base64, + "duration-seconds-int": functools.partial(_deserialize_duration_numeric, unit="seconds"), + "duration-seconds-float": functools.partial(_deserialize_duration_numeric, unit="seconds"), + "duration-milliseconds-int": functools.partial(_deserialize_duration_numeric, unit="milliseconds"), + "duration-milliseconds-float": functools.partial(_deserialize_duration_numeric, unit="milliseconds"), } def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: @@ -425,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -449,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -484,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -509,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: @@ -564,7 +614,7 @@ def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-m pass # Last, try datetime.timedelta try: - return _timedelta_as_isostr(o) + return _serialize_duration(o, format) except AttributeError: # This will be raised when it hits value.total_seconds in the method above pass diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/serialization.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/serialization.py index a088671e9c51..ae08f9d89f74 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/serialization.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} @@ -520,6 +524,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "rfc-1123": Serializer.serialize_rfc, "unix-time": Serializer.serialize_unix, "duration": Serializer.serialize_duration, + "duration-seconds-int": Serializer.serialize_duration_seconds_int, + "duration-seconds-float": Serializer.serialize_duration_seconds_float, + "duration-milliseconds-int": Serializer.serialize_duration_milliseconds_int, + "duration-milliseconds-float": Serializer.serialize_duration_milliseconds_float, "date": Serializer.serialize_date, "time": Serializer.serialize_time, "decimal": Serializer.serialize_decimal, @@ -1109,6 +1117,61 @@ def serialize_duration(attr, **kwargs): # pylint: disable=unused-argument attr = isodate.parse_duration(attr) return isodate.duration_isoformat(attr) + @staticmethod + def _serialize_duration_numeric(attr, scale, as_int): + """Serialize a TimeDelta into a numeric value scaled to the wire unit. + + :param TimeDelta attr: Object to be serialized. + :param int scale: Multiplier applied to total seconds (1 for seconds, 1000 for milliseconds). + :param bool as_int: Whether to truncate the result to an int. + :rtype: int or float + :return: serialized duration + """ + if isinstance(attr, str): + attr = isodate.parse_duration(attr) + value = attr.total_seconds() * scale if isinstance(attr, datetime.timedelta) else attr + return int(value) if as_int else float(value) + + @staticmethod + def serialize_duration_seconds_int(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into an integer number of seconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: int + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1, True) + + @staticmethod + def serialize_duration_seconds_float(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into a floating point number of seconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: float + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1, False) + + @staticmethod + def serialize_duration_milliseconds_int(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into an integer number of milliseconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: int + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1000, True) + + @staticmethod + def serialize_duration_milliseconds_float(attr, **kwargs): # pylint: disable=unused-argument + """Serialize TimeDelta object into a floating point number of milliseconds. + + :param TimeDelta attr: Object to be serialized. + :rtype: float + :return: serialized duration + """ + return Serializer._serialize_duration_numeric(attr, 1000, False) + @staticmethod def serialize_rfc(attr, **kwargs): # pylint: disable=unused-argument """Serialize Datetime object into RFC-1123 formatted string. @@ -1381,6 +1444,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "rfc-1123": Deserializer.deserialize_rfc, "unix-time": Deserializer.deserialize_unix, "duration": Deserializer.deserialize_duration, + "duration-seconds-int": Deserializer.deserialize_duration_seconds, + "duration-seconds-float": Deserializer.deserialize_duration_seconds, + "duration-milliseconds-int": Deserializer.deserialize_duration_milliseconds, + "duration-milliseconds-float": Deserializer.deserialize_duration_milliseconds, "date": Deserializer.deserialize_date, "time": Deserializer.deserialize_time, "decimal": Deserializer.deserialize_decimal, @@ -1393,6 +1460,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: } self.deserialize_expected_types = { "duration": (isodate.Duration, datetime.timedelta), + "duration-seconds-int": (isodate.Duration, datetime.timedelta), + "duration-seconds-float": (isodate.Duration, datetime.timedelta), + "duration-milliseconds-int": (isodate.Duration, datetime.timedelta), + "duration-milliseconds-float": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } self.dependencies: dict[str, type] = dict(classes) if classes else {} @@ -1954,6 +2025,48 @@ def deserialize_duration(attr): raise DeserializationError(msg) from err return duration + @staticmethod + def _deserialize_duration_numeric(attr, unit): + """Deserialize a numeric duration value into a TimeDelta object. + + :param float attr: response value to be deserialized. + :param str unit: The wire unit, used as the ``timedelta`` keyword + (``"seconds"`` or ``"milliseconds"``). + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + duration = datetime.timedelta(**{unit: float(attr)}) # type: ignore + except (ValueError, OverflowError, TypeError) as err: + msg = "Cannot deserialize duration object." + raise DeserializationError(msg) from err + return duration + + @staticmethod + def deserialize_duration_seconds(attr): + """Deserialize a numeric number of seconds into a TimeDelta object. + + :param float attr: response value to be deserialized. + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + return Deserializer._deserialize_duration_numeric(attr, "seconds") + + @staticmethod + def deserialize_duration_milliseconds(attr): + """Deserialize a numeric number of milliseconds into a TimeDelta object. + + :param float attr: response value to be deserialized. + :return: Deserialized duration + :rtype: TimeDelta + :raises DeserializationError: if value is invalid. + """ + return Deserializer._deserialize_duration_numeric(attr, "milliseconds") + @staticmethod def deserialize_date(attr): """Deserialize ISO-8601 formatted string into Date object. diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_version.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_version.py index be71c81bd282..0ec13ea52bbf 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_version.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "1.0.0" diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_client.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_client.py index cecedc2b8d70..9854b92afd25 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_client.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_client.py @@ -31,7 +31,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class NapsterOmniAgentApiMgmtClient: +class NapsterOmniAgentApiMgmtClient: # pylint: disable=docstring-keyword-should-match-keyword-only """NapsterOmniAgentApiMgmtClient. :ivar operations: Operations operations @@ -50,10 +50,9 @@ class NapsterOmniAgentApiMgmtClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are - "2025-12-24-preview" and None. Default value is None. If not set, the operation's default API - version will be used. Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Known values are "2026-08-11" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_configuration.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_configuration.py index ea162d31c004..fcc44c852e51 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_configuration.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for NapsterOmniAgentApiMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,10 +34,9 @@ class NapsterOmniAgentApiMgmtClientConfiguration: # pylint: disable=too-many-in :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are - "2025-12-24-preview" and None. Default value is None. If not set, the operation's default API - version will be used. Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: The API version to use for this operation. Known values are "2026-08-11" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-12-24-preview") + api_version: str = kwargs.pop("api_version", "2026-08-11") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/operations/_operations.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/operations/_operations.py index 3b3ad8584b29..e6a45bbb1c6b 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/operations/_operations.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/aio/operations/_operations.py @@ -33,7 +33,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models as _models +from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer from ...operations._operations import ( @@ -52,11 +52,10 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -169,7 +168,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class OrganizationsOperations: +class OrganizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -262,7 +261,7 @@ async def _create_or_update_initial( self, resource_group_name: str, organizationname: str, - resource: Union[_models.OrganizationResource, JSON, IO[bytes]], + resource: Union[_models.OrganizationResource, _types.OrganizationResource, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -369,7 +368,7 @@ async def begin_create_or_update( self, resource_group_name: str, organizationname: str, - resource: JSON, + resource: _types.OrganizationResource, *, content_type: str = "application/json", **kwargs: Any @@ -382,7 +381,7 @@ async def begin_create_or_update( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param resource: Resource create parameters. Required. - :type resource: JSON + :type resource: ~azure.mgmt.napsteromniagentapi.types.OrganizationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -427,7 +426,7 @@ async def begin_create_or_update( self, resource_group_name: str, organizationname: str, - resource: Union[_models.OrganizationResource, JSON, IO[bytes]], + resource: Union[_models.OrganizationResource, _types.OrganizationResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.OrganizationResource]: """Create a OrganizationResource. @@ -437,10 +436,10 @@ async def begin_create_or_update( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param resource: Resource create parameters. Is one of the following types: - OrganizationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.napsteromniagentapi.models.OrganizationResource or JSON or - IO[bytes] + :param resource: Resource create parameters. Is either a OrganizationResource type or a + IO[bytes] type. Required. + :type resource: ~azure.mgmt.napsteromniagentapi.models.OrganizationResource or + ~azure.mgmt.napsteromniagentapi.types.OrganizationResource or IO[bytes] :return: An instance of AsyncLROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -503,7 +502,7 @@ async def _update_initial( self, resource_group_name: str, organizationname: str, - properties: Union[_models.OrganizationResourceUpdate, JSON, IO[bytes]], + properties: Union[_models.OrganizationResourceUpdate, _types.OrganizationResourceUpdate, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -608,7 +607,7 @@ async def begin_update( self, resource_group_name: str, organizationname: str, - properties: JSON, + properties: _types.OrganizationResourceUpdate, *, content_type: str = "application/json", **kwargs: Any @@ -621,7 +620,7 @@ async def begin_update( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param properties: The resource properties to be updated. Required. - :type properties: JSON + :type properties: ~azure.mgmt.napsteromniagentapi.types.OrganizationResourceUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -666,7 +665,7 @@ async def begin_update( self, resource_group_name: str, organizationname: str, - properties: Union[_models.OrganizationResourceUpdate, JSON, IO[bytes]], + properties: Union[_models.OrganizationResourceUpdate, _types.OrganizationResourceUpdate, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.OrganizationResource]: """Update a OrganizationResource. @@ -676,10 +675,10 @@ async def begin_update( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param properties: The resource properties to be updated. Is one of the following types: - OrganizationResourceUpdate, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.napsteromniagentapi.models.OrganizationResourceUpdate or JSON or - IO[bytes] + :param properties: The resource properties to be updated. Is either a + OrganizationResourceUpdate type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.napsteromniagentapi.models.OrganizationResourceUpdate or + ~azure.mgmt.napsteromniagentapi.types.OrganizationResourceUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -1056,7 +1055,7 @@ async def _link_saa_s_initial( self, resource_group_name: str, organizationname: str, - body: Union[_models.SaaSData, JSON, IO[bytes]], + body: Union[_models.SaaSData, _types.SaaSData, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1166,7 +1165,7 @@ async def begin_link_saa_s( self, resource_group_name: str, organizationname: str, - body: JSON, + body: _types.SaaSData, *, content_type: str = "application/json", **kwargs: Any @@ -1181,7 +1180,7 @@ async def begin_link_saa_s( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param body: The content of the action request. Required. - :type body: JSON + :type body: ~azure.mgmt.napsteromniagentapi.types.SaaSData :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1228,7 +1227,7 @@ async def begin_link_saa_s( self, resource_group_name: str, organizationname: str, - body: Union[_models.SaaSData, JSON, IO[bytes]], + body: Union[_models.SaaSData, _types.SaaSData, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.OrganizationResource]: """Links a new SaaS to the Napster organization of the underlying monitor. @@ -1240,9 +1239,10 @@ async def begin_link_saa_s( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param body: The content of the action request. Is one of the following types: SaaSData, JSON, - IO[bytes] Required. - :type body: ~azure.mgmt.napsteromniagentapi.models.SaaSData or JSON or IO[bytes] + :param body: The content of the action request. Is either a SaaSData type or a IO[bytes] type. + Required. + :type body: ~azure.mgmt.napsteromniagentapi.models.SaaSData or + ~azure.mgmt.napsteromniagentapi.types.SaaSData or IO[bytes] :return: An instance of AsyncLROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -1382,7 +1382,7 @@ async def latest_linked_saa_s( return deserialized # type: ignore -class SaaSOperationGroupOperations: +class SaaSOperationGroupOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1402,7 +1402,9 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") async def _activate_resource_initial( - self, body: Union[_models.ActivateSaaSParameterRequest, JSON, IO[bytes]], **kwargs: Any + self, + body: Union[_models.ActivateSaaSParameterRequest, _types.ActivateSaaSParameterRequest, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -1490,12 +1492,12 @@ async def begin_activate_resource( @overload async def begin_activate_resource( - self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + self, body: _types.ActivateSaaSParameterRequest, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.SaaSResourceDetailsResponse]: """Resolve the token to get the SaaS resource ID and activate the SaaS resource. :param body: The request body. Required. - :type body: JSON + :type body: ~azure.mgmt.napsteromniagentapi.types.ActivateSaaSParameterRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1526,14 +1528,16 @@ async def begin_activate_resource( @distributed_trace_async async def begin_activate_resource( - self, body: Union[_models.ActivateSaaSParameterRequest, JSON, IO[bytes]], **kwargs: Any + self, + body: Union[_models.ActivateSaaSParameterRequest, _types.ActivateSaaSParameterRequest, IO[bytes]], + **kwargs: Any ) -> AsyncLROPoller[_models.SaaSResourceDetailsResponse]: """Resolve the token to get the SaaS resource ID and activate the SaaS resource. - :param body: The request body. Is one of the following types: ActivateSaaSParameterRequest, - JSON, IO[bytes] Required. - :type body: ~azure.mgmt.napsteromniagentapi.models.ActivateSaaSParameterRequest or JSON or - IO[bytes] + :param body: The request body. Is either a ActivateSaaSParameterRequest type or a IO[bytes] + type. Required. + :type body: ~azure.mgmt.napsteromniagentapi.models.ActivateSaaSParameterRequest or + ~azure.mgmt.napsteromniagentapi.types.ActivateSaaSParameterRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns SaaSResourceDetailsResponse. The SaaSResourceDetailsResponse is compatible with MutableMapping :rtype: diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/models/_models.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/models/_models.py index 435b3074048e..f855a0fb9eaf 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/models/_models.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class ActivateSaaSParameterRequest(_Model): +class ActivateSaaSParameterRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SaaS guid & PublishedId for Activate and Validate SaaS Resource. :ivar saas_guid: SaaS guid for Activate and Validate SaaS Resource. Required. @@ -96,7 +96,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -124,7 +124,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LatestLinkedSaaSResponse(_Model): +class LatestLinkedSaaSResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response of get latest linked SaaS resource operation. :ivar saa_s_resource_id: SaaS resource id. @@ -161,7 +161,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedServiceIdentity(_Model): +class ManagedServiceIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property @@ -213,7 +213,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MarketplaceDetails(_Model): +class MarketplaceDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Marketplace details for an organization. :ivar subscription_id: Azure subscription id for the the marketplace offer is purchased from. @@ -266,7 +266,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OfferDetails(_Model): +class OfferDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Offer details for the marketplace that is selected by the user. :ivar publisher_id: Publisher Id for the marketplace offer. Required. @@ -319,7 +319,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """REST API Operation. :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -407,7 +407,7 @@ class OperationDisplay(_Model): views.""" -class OrganizationProperties(_Model): +class OrganizationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties specific to Organization. :ivar marketplace: Marketplace details of the resource. Required. @@ -492,7 +492,7 @@ class Resource(_Model): """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -536,7 +536,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OrganizationResource(TrackedResource): +class OrganizationResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Concrete tracked resource types can be created by aliasing this type using a specific property type. @@ -591,7 +591,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OrganizationResourceUpdate(_Model): +class OrganizationResourceUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The type used for update operations of the Organization Resource. :ivar tags: Resource tags. @@ -626,7 +626,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PartnerProperties(_Model): +class PartnerProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Partner's specific Properties. :ivar application: Application name. Required. @@ -671,7 +671,7 @@ class ProxyResource(Resource): """ -class SaaSData(_Model): +class SaaSData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SaaS-related data properties. :ivar saa_s_resource_id: SaaS resource id. @@ -701,7 +701,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SaaSResourceDetailsResponse(ProxyResource): +class SaaSResourceDetailsResponse(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Marketplace SaaS resource details. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -740,7 +740,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SingleSignOnPropertiesV2(_Model): +class SingleSignOnPropertiesV2(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties specific to Single Sign On Resource. :ivar type: Type of Single Sign-On mechanism being used. Required. Known values are: "Saml" and @@ -800,7 +800,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -882,7 +882,7 @@ class UserAssignedIdentity(_Model): """The client ID of the assigned identity.""" -class UserDetails(_Model): +class UserDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """User details for an organization. :ivar first_name: First name of the user. diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/operations/_operations.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/operations/_operations.py index 032f412e9192..1b7995f8859d 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/operations/_operations.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/operations/_operations.py @@ -32,14 +32,13 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models as _models +from .. import models as _models, types as _types from .._configuration import NapsterOmniAgentApiMgmtClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() @@ -50,7 +49,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +70,7 @@ def build_organizations_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +99,7 @@ def build_organizations_create_or_update_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -131,7 +130,7 @@ def build_organizations_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -160,7 +159,7 @@ def build_organizations_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Napster.CompanionAPI/organizations/{organizationname}" path_format_arguments = { @@ -183,7 +182,7 @@ def build_organizations_list_by_resource_group_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -210,7 +209,7 @@ def build_organizations_list_by_subscription_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -237,7 +236,7 @@ def build_organizations_link_saa_s_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -267,7 +266,7 @@ def build_organizations_latest_linked_saa_s_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -296,7 +295,7 @@ def build_saa_soperation_group_activate_resource_request( # pylint: disable=nam _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-24-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-11")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -318,7 +317,7 @@ def build_saa_soperation_group_activate_resource_request( # pylint: disable=nam return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -430,7 +429,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class OrganizationsOperations: +class OrganizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -523,7 +522,7 @@ def _create_or_update_initial( self, resource_group_name: str, organizationname: str, - resource: Union[_models.OrganizationResource, JSON, IO[bytes]], + resource: Union[_models.OrganizationResource, _types.OrganizationResource, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -630,7 +629,7 @@ def begin_create_or_update( self, resource_group_name: str, organizationname: str, - resource: JSON, + resource: _types.OrganizationResource, *, content_type: str = "application/json", **kwargs: Any @@ -643,7 +642,7 @@ def begin_create_or_update( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param resource: Resource create parameters. Required. - :type resource: JSON + :type resource: ~azure.mgmt.napsteromniagentapi.types.OrganizationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -688,7 +687,7 @@ def begin_create_or_update( self, resource_group_name: str, organizationname: str, - resource: Union[_models.OrganizationResource, JSON, IO[bytes]], + resource: Union[_models.OrganizationResource, _types.OrganizationResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.OrganizationResource]: """Create a OrganizationResource. @@ -698,10 +697,10 @@ def begin_create_or_update( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param resource: Resource create parameters. Is one of the following types: - OrganizationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.napsteromniagentapi.models.OrganizationResource or JSON or - IO[bytes] + :param resource: Resource create parameters. Is either a OrganizationResource type or a + IO[bytes] type. Required. + :type resource: ~azure.mgmt.napsteromniagentapi.models.OrganizationResource or + ~azure.mgmt.napsteromniagentapi.types.OrganizationResource or IO[bytes] :return: An instance of LROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -764,7 +763,7 @@ def _update_initial( self, resource_group_name: str, organizationname: str, - properties: Union[_models.OrganizationResourceUpdate, JSON, IO[bytes]], + properties: Union[_models.OrganizationResourceUpdate, _types.OrganizationResourceUpdate, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -869,7 +868,7 @@ def begin_update( self, resource_group_name: str, organizationname: str, - properties: JSON, + properties: _types.OrganizationResourceUpdate, *, content_type: str = "application/json", **kwargs: Any @@ -882,7 +881,7 @@ def begin_update( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param properties: The resource properties to be updated. Required. - :type properties: JSON + :type properties: ~azure.mgmt.napsteromniagentapi.types.OrganizationResourceUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -927,7 +926,7 @@ def begin_update( self, resource_group_name: str, organizationname: str, - properties: Union[_models.OrganizationResourceUpdate, JSON, IO[bytes]], + properties: Union[_models.OrganizationResourceUpdate, _types.OrganizationResourceUpdate, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.OrganizationResource]: """Update a OrganizationResource. @@ -937,10 +936,10 @@ def begin_update( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param properties: The resource properties to be updated. Is one of the following types: - OrganizationResourceUpdate, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.napsteromniagentapi.models.OrganizationResourceUpdate or JSON or - IO[bytes] + :param properties: The resource properties to be updated. Is either a + OrganizationResourceUpdate type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.napsteromniagentapi.models.OrganizationResourceUpdate or + ~azure.mgmt.napsteromniagentapi.types.OrganizationResourceUpdate or IO[bytes] :return: An instance of LROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -1313,7 +1312,7 @@ def _link_saa_s_initial( self, resource_group_name: str, organizationname: str, - body: Union[_models.SaaSData, JSON, IO[bytes]], + body: Union[_models.SaaSData, _types.SaaSData, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -1423,7 +1422,7 @@ def begin_link_saa_s( self, resource_group_name: str, organizationname: str, - body: JSON, + body: _types.SaaSData, *, content_type: str = "application/json", **kwargs: Any @@ -1438,7 +1437,7 @@ def begin_link_saa_s( :param organizationname: Name of the Organization resource. Required. :type organizationname: str :param body: The content of the action request. Required. - :type body: JSON + :type body: ~azure.mgmt.napsteromniagentapi.types.SaaSData :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1485,7 +1484,7 @@ def begin_link_saa_s( self, resource_group_name: str, organizationname: str, - body: Union[_models.SaaSData, JSON, IO[bytes]], + body: Union[_models.SaaSData, _types.SaaSData, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.OrganizationResource]: """Links a new SaaS to the Napster organization of the underlying monitor. @@ -1497,9 +1496,10 @@ def begin_link_saa_s( :type resource_group_name: str :param organizationname: Name of the Organization resource. Required. :type organizationname: str - :param body: The content of the action request. Is one of the following types: SaaSData, JSON, - IO[bytes] Required. - :type body: ~azure.mgmt.napsteromniagentapi.models.SaaSData or JSON or IO[bytes] + :param body: The content of the action request. Is either a SaaSData type or a IO[bytes] type. + Required. + :type body: ~azure.mgmt.napsteromniagentapi.models.SaaSData or + ~azure.mgmt.napsteromniagentapi.types.SaaSData or IO[bytes] :return: An instance of LROPoller that returns OrganizationResource. The OrganizationResource is compatible with MutableMapping :rtype: @@ -1639,7 +1639,7 @@ def latest_linked_saa_s( return deserialized # type: ignore -class SaaSOperationGroupOperations: +class SaaSOperationGroupOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1659,7 +1659,9 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") def _activate_resource_initial( - self, body: Union[_models.ActivateSaaSParameterRequest, JSON, IO[bytes]], **kwargs: Any + self, + body: Union[_models.ActivateSaaSParameterRequest, _types.ActivateSaaSParameterRequest, IO[bytes]], + **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -1747,12 +1749,12 @@ def begin_activate_resource( @overload def begin_activate_resource( - self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + self, body: _types.ActivateSaaSParameterRequest, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.SaaSResourceDetailsResponse]: """Resolve the token to get the SaaS resource ID and activate the SaaS resource. :param body: The request body. Required. - :type body: JSON + :type body: ~azure.mgmt.napsteromniagentapi.types.ActivateSaaSParameterRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1783,14 +1785,16 @@ def begin_activate_resource( @distributed_trace def begin_activate_resource( - self, body: Union[_models.ActivateSaaSParameterRequest, JSON, IO[bytes]], **kwargs: Any + self, + body: Union[_models.ActivateSaaSParameterRequest, _types.ActivateSaaSParameterRequest, IO[bytes]], + **kwargs: Any ) -> LROPoller[_models.SaaSResourceDetailsResponse]: """Resolve the token to get the SaaS resource ID and activate the SaaS resource. - :param body: The request body. Is one of the following types: ActivateSaaSParameterRequest, - JSON, IO[bytes] Required. - :type body: ~azure.mgmt.napsteromniagentapi.models.ActivateSaaSParameterRequest or JSON or - IO[bytes] + :param body: The request body. Is either a ActivateSaaSParameterRequest type or a IO[bytes] + type. Required. + :type body: ~azure.mgmt.napsteromniagentapi.models.ActivateSaaSParameterRequest or + ~azure.mgmt.napsteromniagentapi.types.ActivateSaaSParameterRequest or IO[bytes] :return: An instance of LROPoller that returns SaaSResourceDetailsResponse. The SaaSResourceDetailsResponse is compatible with MutableMapping :rtype: diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/types.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/types.py new file mode 100644 index 000000000000..f45abe447926 --- /dev/null +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/azure/mgmt/napsteromniagentapi/types.py @@ -0,0 +1,380 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING, Union +from typing_extensions import Required, TypedDict + +if TYPE_CHECKING: + from .models import ( + CreatedByType, + ManagedServiceIdentityType, + MarketplaceSubscriptionStatus, + ResourceProvisioningState, + SingleSignOnStates, + SingleSignOnType, + ) + + +class ActivateSaaSParameterRequest(TypedDict, total=False): + """SaaS guid & PublishedId for Activate and Validate SaaS Resource. + + :ivar saasGuid: SaaS guid for Activate and Validate SaaS Resource. Required. + :vartype saasGuid: str + :ivar publisherId: Publisher Id for Napster resource. + :vartype publisherId: str + """ + + saasGuid: Required[str] + """SaaS guid for Activate and Validate SaaS Resource. Required.""" + publisherId: str + """Publisher Id for Napster resource.""" + + +class ManagedServiceIdentity(TypedDict, total=False): + """Managed service identity (system assigned and/or user assigned identities). + + :ivar principalId: The service principal ID of the system assigned identity. This property will + only be provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenantId: str + :ivar type: The type of managed identity assigned to this resource. Required. Known values are: + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + :vartype type: Union[str, "ManagedServiceIdentityType"] + :ivar userAssignedIdentities: The identities assigned to this resource by the user. + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """ + + principalId: str + """The service principal ID of the system assigned identity. This property will only be provided + for a system assigned identity.""" + tenantId: str + """The tenant ID of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Required[Union[str, "ManagedServiceIdentityType"]] + """The type of managed identity assigned to this resource. Required. Known values are: \"None\", + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """The identities assigned to this resource by the user.""" + + +class MarketplaceDetails(TypedDict, total=False): + """Marketplace details for an organization. + + :ivar subscriptionId: Azure subscription id for the the marketplace offer is purchased from. + :vartype subscriptionId: str + :ivar subscriptionStatus: Marketplace subscription status. Known values are: + "PendingFulfillmentStart", "Subscribed", "Suspended", and "Unsubscribed". + :vartype subscriptionStatus: Union[str, "MarketplaceSubscriptionStatus"] + :ivar saasResourceId: Marketplace SaaS Resource Id. + :vartype saasResourceId: str + :ivar offerDetails: Offer details for the marketplace that is selected by the user. Required. + :vartype offerDetails: "OfferDetails" + """ + + subscriptionId: str + """Azure subscription id for the the marketplace offer is purchased from.""" + subscriptionStatus: Union[str, "MarketplaceSubscriptionStatus"] + """Marketplace subscription status. Known values are: \"PendingFulfillmentStart\", \"Subscribed\", + \"Suspended\", and \"Unsubscribed\".""" + saasResourceId: str + """Marketplace SaaS Resource Id.""" + offerDetails: Required["OfferDetails"] + """Offer details for the marketplace that is selected by the user. Required.""" + + +class OfferDetails(TypedDict, total=False): + """Offer details for the marketplace that is selected by the user. + + :ivar publisherId: Publisher Id for the marketplace offer. Required. + :vartype publisherId: str + :ivar offerId: Offer Id for the marketplace offer. Required. + :vartype offerId: str + :ivar planId: Plan Id for the marketplace offer. + :vartype planId: str + :ivar planName: Plan Name for the marketplace offer. + :vartype planName: str + :ivar termUnit: Plan Display Name for the marketplace offer. + :vartype termUnit: str + :ivar termId: Plan Display Name for the marketplace offer. + :vartype termId: str + """ + + publisherId: Required[str] + """Publisher Id for the marketplace offer. Required.""" + offerId: Required[str] + """Offer Id for the marketplace offer. Required.""" + planId: str + """Plan Id for the marketplace offer.""" + planName: str + """Plan Name for the marketplace offer.""" + termUnit: str + """Plan Display Name for the marketplace offer.""" + termId: str + """Plan Display Name for the marketplace offer.""" + + +class OrganizationProperties(TypedDict, total=False): + """Properties specific to Organization. + + :ivar marketplace: Marketplace details of the resource. Required. + :vartype marketplace: "MarketplaceDetails" + :ivar user: Details of the user. Required. + :vartype user: "UserDetails" + :ivar provisioningState: Provisioning state of the resource. Known values are: "Succeeded", + "Failed", and "Canceled". + :vartype provisioningState: Union[str, "ResourceProvisioningState"] + :ivar partnerProperties: partner properties. Required. + :vartype partnerProperties: "PartnerProperties" + :ivar singleSignOnProperties: Single sign-on properties. + :vartype singleSignOnProperties: "SingleSignOnPropertiesV2" + """ + + marketplace: Required["MarketplaceDetails"] + """Marketplace details of the resource. Required.""" + user: Required["UserDetails"] + """Details of the user. Required.""" + provisioningState: Union[str, "ResourceProvisioningState"] + """Provisioning state of the resource. Known values are: \"Succeeded\", \"Failed\", and + \"Canceled\".""" + partnerProperties: Required["PartnerProperties"] + """partner properties. Required.""" + singleSignOnProperties: "SingleSignOnPropertiesV2" + """Single sign-on properties.""" + + +class Resource(TypedDict, total=False): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + id: str + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: str + """The name of the resource.""" + type: str + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class TrackedResource(Resource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: dict[str, str] + """Resource tags.""" + location: Required[str] + """The geo-location where the resource lives. Required.""" + + +class OrganizationResource(TrackedResource): + """Concrete tracked resource types can be created by aliasing this type using a specific property + type. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The resource-specific properties for this resource. + :vartype properties: "OrganizationProperties" + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "OrganizationProperties" + """The resource-specific properties for this resource.""" + identity: "ManagedServiceIdentity" + """The managed service identities assigned to this resource.""" + + +class OrganizationResourceUpdate(TypedDict, total=False): + """The type used for update operations of the Organization Resource. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: "ManagedServiceIdentity" + """ + + tags: dict[str, str] + """Resource tags.""" + identity: "ManagedServiceIdentity" + """The managed service identities assigned to this resource.""" + + +class PartnerProperties(TypedDict, total=False): + """Partner's specific Properties. + + :ivar application: Application name. Required. + :vartype application: str + """ + + application: Required[str] + """Application name. Required.""" + + +class SaaSData(TypedDict, total=False): + """SaaS-related data properties. + + :ivar saaSResourceId: SaaS resource id. + :vartype saaSResourceId: str + """ + + saaSResourceId: str + """SaaS resource id.""" + + +class SingleSignOnPropertiesV2(TypedDict, total=False): + """Properties specific to Single Sign On Resource. + + :ivar type: Type of Single Sign-On mechanism being used. Required. Known values are: "Saml" and + "OpenId". + :vartype type: Union[str, "SingleSignOnType"] + :ivar state: State of the Single Sign On for the resource. Known values are: "Initial", + "Enable", and "Disable". + :vartype state: Union[str, "SingleSignOnStates"] + :ivar enterpriseAppId: AAD enterprise application Id used to setup SSO. + :vartype enterpriseAppId: str + :ivar url: URL for SSO to be used by the partner to redirect the user to their system. + :vartype url: str + :ivar aadDomains: List of AAD domains fetched from Microsoft Graph for user. + :vartype aadDomains: list[str] + """ + + type: Required[Union[str, "SingleSignOnType"]] + """Type of Single Sign-On mechanism being used. Required. Known values are: \"Saml\" and + \"OpenId\".""" + state: Union[str, "SingleSignOnStates"] + """State of the Single Sign On for the resource. Known values are: \"Initial\", \"Enable\", and + \"Disable\".""" + enterpriseAppId: str + """AAD enterprise application Id used to setup SSO.""" + url: str + """URL for SSO to be used by the partner to redirect the user to their system.""" + aadDomains: list[str] + """List of AAD domains fetched from Microsoft Graph for user.""" + + +class SystemData(TypedDict, total=False): + """Metadata pertaining to creation and last modification of the resource. + + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str + """ + + createdBy: str + """The identity that created the resource.""" + createdByType: Union[str, "CreatedByType"] + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + createdAt: str + """The timestamp of resource creation (UTC).""" + lastModifiedBy: str + """The identity that last modified the resource.""" + lastModifiedByType: Union[str, "CreatedByType"] + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + lastModifiedAt: str + """The timestamp of resource last modification (UTC).""" + + +class UserAssignedIdentity(TypedDict, total=False): + """User assigned identity properties. + + :ivar principalId: The principal ID of the assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the assigned identity. + :vartype clientId: str + """ + + principalId: str + """The principal ID of the assigned identity.""" + clientId: str + """The client ID of the assigned identity.""" + + +class UserDetails(TypedDict, total=False): + """User details for an organization. + + :ivar firstName: First name of the user. + :vartype firstName: str + :ivar lastName: Last name of the user. + :vartype lastName: str + :ivar emailAddress: Email address of the user. + :vartype emailAddress: str + :ivar upn: User's principal name. + :vartype upn: str + :ivar phoneNumber: User's phone number. + :vartype phoneNumber: str + """ + + firstName: str + """First name of the user.""" + lastName: str + """Last name of the user.""" + emailAddress: str + """Email address of the user.""" + upn: str + """User's principal name.""" + phoneNumber: str + """User's phone number.""" diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_maximum_set_gen.py index b2886936246f..0178700b4361 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_minimum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_minimum_set_gen.py index aa39f52631e2..e9921725f4fe 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_minimum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/operations_list_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Operations_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-08-11/Operations_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_create_or_update_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_create_or_update_maximum_set_gen.py index 89bc36ed33cc..b40411d9ab65 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_create_or_update_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_create_or_update_maximum_set_gen.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_delete_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_delete_maximum_set_gen.py index ba78ae4ce5af..5874e1dad387 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_delete_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-24-preview/Organizations_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_get_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_get_maximum_set_gen.py index fae3d4350215..d7a0e7dd3bfb 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_get_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_get_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/Organizations_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_latest_linked_saa_s_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_latest_linked_saa_s_maximum_set_gen.py index 1bf69dd1a096..6d80c0df5862 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_latest_linked_saa_s_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_latest_linked_saa_s_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/Organizations_LatestLinkedSaaS_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_LatestLinkedSaaS_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_link_saa_s_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_link_saa_s_maximum_set_gen.py index 80876d9ef9a0..9581090e6390 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_link_saa_s_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_link_saa_s_maximum_set_gen.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/Organizations_LinkSaaS_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_LinkSaaS_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_maximum_set_gen.py index 2b1cd1d647de..8a8bd0cb9b99 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_minimum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_minimum_set_gen.py index ee69c15abc20..fa264fdc6a56 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_minimum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_resource_group_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Organizations_ListByResourceGroup_MinimumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_ListByResourceGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_maximum_set_gen.py index bfb2a1377721..be889742e7d6 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Organizations_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_minimum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_minimum_set_gen.py index a4171e144ede..dcdeb6ca4689 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_minimum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_list_by_subscription_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-24-preview/Organizations_ListBySubscription_MinimumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_ListBySubscription_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_update_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_update_maximum_set_gen.py index ae0374789bb2..7927da7cf926 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_update_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/organizations_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/Organizations_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/Organizations_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_maximum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_maximum_set_gen.py index 00c49907ddcd..5af4eac4be96 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_maximum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/SaaSOperationGroup_ActivateResource_MaximumSet_Gen.json +# x-ms-original-file: 2026-08-11/SaaSOperationGroup_ActivateResource_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_minimum_set_gen.py b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_minimum_set_gen.py index 5f7a671f9b97..4129335a4769 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_minimum_set_gen.py +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/generated_samples/saa_soperation_group_activate_resource_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-24-preview/SaaSOperationGroup_ActivateResource_MinimumSet_Gen.json +# x-ms-original-file: 2026-08-11/SaaSOperationGroup_ActivateResource_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/pyproject.toml b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/pyproject.toml index 90bcc83aeb32..74e207578f60 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/pyproject.toml +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Napsteromniagentapi Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -77,7 +77,7 @@ package_name = "azure-mgmt-napsteromniagentapi" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Napsteromniagentapi Management" package_doc_id = "" -is_stable = false +is_stable = true is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/tsp-location.yaml b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/tsp-location.yaml index de6413bed0a4..9140b421593b 100644 --- a/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/tsp-location.yaml +++ b/sdk/napsteromniagentapi/azure-mgmt-napsteromniagentapi/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/napster/Napster.CompanionAPI.Management -commit: fdb904690da515aa8449471145922a90b666bbe8 +commit: e9b8d33567e9422a09711667279fe178fada51a1 repo: Azure/azure-rest-api-specs additionalDirectories: