Skip to content

Conversation

@erezrokah
Copy link
Member

Summary

Fixes #11630

@github-actions
Copy link

This PR has the following changes to source plugin(s) tables:

  • Table azure_cognitiveservices_account_deployments was added
  • Table azure_cognitiveservices_account_models was added
  • Table azure_cognitiveservices_account_private_endpoint_connections was added
  • Table azure_cognitiveservices_account_private_link_resources was added
  • Table azure_cognitiveservices_account_skus was added
  • Table azure_cognitiveservices_account_usages was added
  • Table azure_cognitiveservices_commitment_plans was added
  • Table azure_cognitiveservices_resource_skus was added

PostResourceResolver: client.LowercaseIDResolver,
Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-skus?tabs=HTTP#accountsku",
Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_skus", client.Namespacemicrosoft_cognitiveservices),
Transform: transformers.TransformWithStruct(&armcognitiveservices.AccountSKU{}),
Copy link
Member Author

Choose a reason for hiding this comment

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

These don't have an ID. In azure_compute_skus we calculate a hash. We could do this here too

PostResourceResolver: client.LowercaseIDResolver,
Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/[email protected]#AccountModel",
Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_models", client.Namespacemicrosoft_cognitiveservices),
Transform: transformers.TransformWithStruct(&armcognitiveservices.AccountModel{}),
Copy link
Member Author

Choose a reason for hiding this comment

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

These don't have an ID. In azure_compute_skus we calculate a hash. We could do this here too.
Also the models list method is not shown in the REST API docs so I'm linking to the pkg.go.dev docs in the description

PostResourceResolver: client.LowercaseIDResolver,
Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-usages?tabs=HTTP#usage",
Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_usages", client.Namespacemicrosoft_cognitiveservices),
Transform: transformers.TransformWithStruct(&armcognitiveservices.Usage{}),
Copy link
Member Author

@erezrokah erezrokah Jun 16, 2023

Choose a reason for hiding this comment

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

These don't have an ID. In azure_compute_skus we calculate a hash. We could do this here too.

PostResourceResolver: client.LowercaseIDResolver,
Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/resource-skus/list?tabs=HTTP#resourcesku",
Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_resource_skus", client.Namespacemicrosoft_cognitiveservices),
Transform: transformers.TransformWithStruct(&armcognitiveservices.ResourceSKU{}),
Copy link
Member Author

@erezrokah erezrokah Jun 16, 2023

Choose a reason for hiding this comment

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

These don't have an ID. In azure_compute_skus we calculate a hash. We could do this here too.

@tweaknc
Copy link

tweaknc commented Jun 16, 2023

Yes that looks great. I approve.

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jun 17, 2023
@kodiakhq kodiakhq bot merged commit 74b64e4 into cloudquery:main Jun 17, 2023
erezrokah pushed a commit that referenced this pull request Jun 20, 2023
🤖 I have created a release *beep* *boop*
---


##
[8.3.0](plugins-source-azure-v8.2.0...plugins-source-azure-v8.3.0)
(2023-06-20)


### This Release has the Following Changes to Tables
- Table `azure_cognitiveservices_account_deployments` was added
- Table `azure_cognitiveservices_account_models` was added
- Table `azure_cognitiveservices_account_private_endpoint_connections`
was added
- Table `azure_cognitiveservices_account_private_link_resources` was
added
- Table `azure_cognitiveservices_account_skus` was added
- Table `azure_cognitiveservices_account_usages` was added
- Table `azure_cognitiveservices_commitment_plans` was added
- Table `azure_cognitiveservices_resource_skus` was added
- Table `azure_subscription_subscription_locations`: column added with
name `metadata` and type `json`
- Table `azure_subscription_subscription_locations`: column added with
name `regional_display_name` and type `utf8`
- Table `azure_subscription_subscription_locations`: column added with
name `type` and type `utf8`
- Table `azure_subscription_subscriptions`: column added with name
`managed_by_tenants` and type `json`
- Table `azure_subscription_subscriptions`: column added with name
`tags` and type `json`
- Table `azure_subscription_subscriptions`: column added with name
`tenant_id` and type `utf8`
- Table `azure_subscription_tenants`: column added with name
`country_code` and type `utf8`
- Table `azure_subscription_tenants`: column added with name `country`
and type `utf8`
- Table `azure_subscription_tenants`: column added with name
`default_domain` and type `utf8`
- Table `azure_subscription_tenants`: column added with name
`display_name` and type `utf8`
- Table `azure_subscription_tenants`: column added with name `domains`
and type `list<item: utf8, nullable>`
- Table `azure_subscription_tenants`: column added with name
`tenant_branding_logo_url` and type `utf8`
- Table `azure_subscription_tenants`: column added with name
`tenant_category` and type `utf8`
- Table `azure_subscription_tenants`: column added with name
`tenant_type` and type `utf8`

### Features

* **azure-resources:** Add missing Cognitive Services resources
([#11645](#11645))
([74b64e4](74b64e4))
* **resources:** Use `resourcemanager/resources/armsubscriptions` for
subscription resources
([#10369](#10369))
([0a76536](0a76536)),
closes [#9854](#9854)


### Bug Fixes

* **azure-policies:** Fix Syntax for policies
([#10184](#10184))
([7795b37](7795b37))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 1e68c51
([#11637](#11637))
([46043bc](46043bc))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 4d76231
([#11532](#11532))
([6f04233](6f04233))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to b0832be
([#11651](#11651))
([71e8c29](71e8c29))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d864719
([#11611](#11611))
([557a290](557a290))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.6
([#11473](#11473))
([7272133](7272133))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: cq-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add Azure OpenAi to Azure source plugin

4 participants