Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Data Connectors Check Requirements to security insights #8020

Merged
merged 17 commits into from
Jan 23, 2020
Merged

Added Data Connectors Check Requirements to security insights #8020

merged 17 commits into from
Jan 23, 2020

Conversation

orgadhadas
Copy link
Contributor

@orgadhadas orgadhadas commented Dec 22, 2019

Latest improvements:

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Contribution checklist:

  • I have reviewed the documentation for the workflow.
  • Validation tools were run on swagger spec(s) and have all been fixed in this PR.
  • The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
  • adding/removing APIs.
  • adding/removing properties.
  • adding/removing API-version.
  • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@AutorestCI
Copy link

You don't have permission to trigger SDK Automation.
Please add yourself to Azure group from opensource portal if you are MSFT employee,
or please ask reviewer to add comment *** /openapibot sdkautomation ***.
Please ask tih@microsoft.com (or NullMDR in github) for additional help.

@msftclas
Copy link

msftclas commented Dec 22, 2019

CLA assistant check
All CLA requirements met.

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@fengzhou-msft fengzhou-msft added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Dec 22, 2019
@t-haorga
Copy link
Contributor

t-haorga commented Dec 22, 2019

Hi @fengzhou-msft , I accidentally opened this PR from my personal Github account. I am a MS employee working in Azure Sentinel group. Thanks!

@fengzhou-msft
Copy link
Member

/azp run automation – sdk

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@fengzhou-msft
Copy link
Member

@t-haorga please use your personal account which submitted this PR to sign CLA in the above comment.

@fengzhou-msft
Copy link
Member

/openapi sdkautomation

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 23, 2019

azure-sdk-for-js - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 803a75e with merge commit 2edf12a. SDK Automation 13.0.17.20191226.1
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 23, 2019

azure-sdk-for-python - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 803a75e with merge commit 2edf12a. SDK Automation 13.0.17.20191226.1
    Failed to find any changed packages. Please check the changed file list.
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_configuration.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_security_insights.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_models_py3.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_paged_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_security_insights_enums.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_actions_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_alert_rule_templates_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_alert_rules_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_bookmark_relations_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_bookmarks_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_case_comments_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_case_relations_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_cases_aggregations_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_cases_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_comments_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_data_connectors_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_entities_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_entity_queries_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_office_consents_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_product_settings_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_security_insights_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt-securityinsight/azure/mgmt/securityinsight/version.py

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Dec 23, 2019

azure-sdk-for-net - Release

️✔️ succeeded [Logs] [Expand Details]
  • ️✔️ Generate from 803a75e with merge commit 2edf12a. SDK Automation 13.0.17.20191226.1
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
  • ️✔️Microsoft.Azure.Management.SecurityInsights [Logs]  [Release SDK Changes]
      No Artifact Generated.

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Dec 23, 2019

    azure-sdk-for-java - Release

    No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Dec 23, 2019

    azure-sdk-for-go - Release

    ️✔️ succeeded [Logs] [Expand Details]

    @azure-pipelines
    Copy link

    Commenter does not have sufficient privileges for PR 8020 in repo Azure/azure-rest-api-specs

    @t-haorga
    Copy link
    Contributor

    @fengzhou-msft signed

    @t-haorga
    Copy link
    Contributor

    t-haorga commented Jan 1, 2020

    @fengzhou-msft waiting for your approval

    @orgadhadas orgadhadas changed the title Added Data Connectors Check Requirements to security insights [Do Not Merge] Added Data Connectors Check Requirements to security insights Jan 2, 2020
    @orgadhadas
    Copy link
    Contributor Author

    orgadhadas commented Jan 2, 2020

    I am adding some changes that we applied since I opened this PR. Please do not merge automatically yet but do review the PR. Thanks!

    "Check Data Connector Requirements"
    ],
    "description": "Get requirements state for a data connector type.",
    "operationId": "DataConnectorRequirements_list",
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    DataConnectorRequirements_list [](start = 24, length = 30)

    update

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Can you please explain why?

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    it is a post operation.. _List is usually for collection.. probably rename the action name to '/listDataConnectorRequirements' ?


    In reply to: 364130217 [](ancestors = 364130217)

    "type": "object",
    "required": [
    "kind"
    ]
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    I suppose this is already being enforced at server level and even discriminator pattern may not work. hope that is the case.
    otherwise, adding new required property is a breaking change.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    I added these because a test wouldn't pass, there was an error saying a discriminator must be required.
    It is enforced in the server level as well.
    What do you mean by "even discriminator pattern may not work" ?

    @t-haorga
    Copy link
    Contributor

    @fengzhou-msft Please merge

    @orgadhadas orgadhadas changed the title [Do Not Merge] Added Data Connectors Check Requirements to security insights Added Data Connectors Check Requirements to security insights Jan 21, 2020
    @fengzhou-msft
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 3 pipeline(s).

    "x-ms-enum": {
    "modelAsString": true,
    "name": "DataConnectorAuthorizationType",
    "values": [
    Copy link
    Member

    Choose a reason for hiding this comment

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

    SDK automation tests failed because the values in x-ms-enum do not match with enum values above.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Ok I fixed that now

    @fengzhou-msft
    Copy link
    Member

    /azp run automation - sdk

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @t-haorga
    Copy link
    Contributor

    /azp run automation - sdk

    @azure-pipelines
    Copy link

    Commenter does not have sufficient privileges for PR 8020 in repo Azure/azure-rest-api-specs

    @t-haorga
    Copy link
    Contributor

    @fengzhou-msft I think it should be fine now, but I couldn't run the tests myself

    @fengzhou-msft
    Copy link
    Member

    /azp run automation - sdk

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @t-haorga
    Copy link
    Contributor

    @fengzhou-msft I think this check might be stuck - it is still waiting for status report after a few hours.

    @fengzhou-msft
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 3 pipeline(s).

    @t-haorga
    Copy link
    Contributor

    @fengzhou-msft all tests passed, please merge. Thanks!

    @fengzhou-msft fengzhou-msft merged commit 2edf12a into Azure:master Jan 23, 2020
    ssripadham pushed a commit to ssripadham/azure-rest-api-specs that referenced this pull request Feb 21, 2020
    00Kai0 pushed a commit to 00Kai0/azure-rest-api-specs that referenced this pull request Oct 12, 2020
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants