-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge dev with feature/0.8.0 (#435)
- Loading branch information
Showing
65 changed files
with
5,881 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# coding=utf-8 | ||
# ---------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License file in the project root for license information. | ||
# ---------------------------------------------------------------------------------------------- | ||
|
||
from typing import Optional | ||
from .providers.orchestration.resources.connector.opcua.certs import OpcUACerts | ||
|
||
|
||
def add_connector_opcua_trust( | ||
cmd, | ||
instance_name: str, | ||
resource_group: str, | ||
file: str, | ||
secret_name: Optional[str] = None, | ||
) -> dict: | ||
return OpcUACerts(cmd).trust_add( | ||
instance_name=instance_name, | ||
resource_group=resource_group, | ||
file=file, | ||
secret_name=secret_name, | ||
) | ||
|
||
|
||
def add_connector_opcua_issuer( | ||
cmd, | ||
instance_name: str, | ||
resource_group: str, | ||
file: str, | ||
secret_name: Optional[str] = None, | ||
) -> dict: | ||
return OpcUACerts(cmd).issuer_add( | ||
instance_name=instance_name, | ||
resource_group=resource_group, | ||
file=file, | ||
secret_name=secret_name, | ||
) | ||
|
||
|
||
def add_connector_opcua_client( | ||
cmd, | ||
instance_name: str, | ||
resource_group: str, | ||
public_key_file: str, | ||
private_key_file: str, | ||
subject_name: str, | ||
application_uri: str, | ||
public_key_secret_name: Optional[str] = None, | ||
private_key_secret_name: Optional[str] = None, | ||
) -> dict: | ||
return OpcUACerts(cmd).client_add( | ||
instance_name=instance_name, | ||
resource_group=resource_group, | ||
public_key_file=public_key_file, | ||
private_key_file=private_key_file, | ||
subject_name=subject_name, | ||
application_uri=application_uri, | ||
public_key_secret_name=public_key_secret_name, | ||
private_key_secret_name=private_key_secret_name, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.