Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR containerinstance/resource-manager] Container Instance: Adding September Update #3493

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ContainerInstanceManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-06-01';
this.apiVersion = '2018-09-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ class ContainerGroup extends models['Resource'] {
* for log analytics
* @member {string} [diagnostics.logAnalytics.workspaceKey] The workspace key
* for log analytics
* @member {string} [diagnostics.logAnalytics.logType] The log type to be
* used. Possible values include: 'ContainerInsights',
* 'ContainerInstanceLogs'
* @member {object} [diagnostics.logAnalytics.metadata] Metadata for log
* analytics.
* @member {object} [networkProfile] The network profile information for a
* container group.
* @member {string} [networkProfile.id] The identifier for a network profile.
*/
constructor() {
super();
Expand Down Expand Up @@ -210,6 +218,14 @@ class ContainerGroup extends models['Resource'] {
name: 'Composite',
className: 'ContainerGroupDiagnostics'
}
},
networkProfile: {
required: false,
serializedName: 'properties.networkProfile',
type: {
name: 'Composite',
className: 'ContainerGroupNetworkProfile'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class ContainerGroupDiagnostics {
* analytics
* @member {string} [logAnalytics.workspaceKey] The workspace key for log
* analytics
* @member {string} [logAnalytics.logType] The log type to be used. Possible
* values include: 'ContainerInsights', 'ContainerInstanceLogs'
* @member {object} [logAnalytics.metadata] Metadata for log analytics.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* 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) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Container group network profile information.
*
*/
class ContainerGroupNetworkProfile {
/**
* Create a ContainerGroupNetworkProfile.
* @member {string} id The identifier for a network profile.
*/
constructor() {
}

/**
* Defines the metadata of ContainerGroupNetworkProfile
*
* @returns {object} metadata of ContainerGroupNetworkProfile
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerGroupNetworkProfile',
type: {
name: 'Composite',
className: 'ContainerGroupNetworkProfile',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ContainerGroupNetworkProfile;
28 changes: 28 additions & 0 deletions lib/services/containerinstanceManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,15 @@ export interface ContainerGroupPropertiesInstanceView {
*
* @member {string} workspaceId The workspace id for log analytics
* @member {string} workspaceKey The workspace key for log analytics
* @member {string} [logType] The log type to be used. Possible values include:
* 'ContainerInsights', 'ContainerInstanceLogs'
* @member {object} [metadata] Metadata for log analytics.
*/
export interface LogAnalytics {
workspaceId: string;
workspaceKey: string;
logType?: string;
metadata?: { [propertyName: string]: string };
}

/**
Expand All @@ -525,11 +530,26 @@ export interface LogAnalytics {
* analytics
* @member {string} [logAnalytics.workspaceKey] The workspace key for log
* analytics
* @member {string} [logAnalytics.logType] The log type to be used. Possible
* values include: 'ContainerInsights', 'ContainerInstanceLogs'
* @member {object} [logAnalytics.metadata] Metadata for log analytics.
*/
export interface ContainerGroupDiagnostics {
logAnalytics?: LogAnalytics;
}

/**
* @class
* Initializes a new instance of the ContainerGroupNetworkProfile class.
* @constructor
* Container group network profile information.
*
* @member {string} id The identifier for a network profile.
*/
export interface ContainerGroupNetworkProfile {
id: string;
}

/**
* @class
* Initializes a new instance of the Resource class.
Expand Down Expand Up @@ -590,6 +610,13 @@ export interface Resource extends BaseResource {
* log analytics
* @member {string} [diagnostics.logAnalytics.workspaceKey] The workspace key
* for log analytics
* @member {string} [diagnostics.logAnalytics.logType] The log type to be used.
* Possible values include: 'ContainerInsights', 'ContainerInstanceLogs'
* @member {object} [diagnostics.logAnalytics.metadata] Metadata for log
* analytics.
* @member {object} [networkProfile] The network profile information for a
* container group.
* @member {string} [networkProfile.id] The identifier for a network profile.
*/
export interface ContainerGroup extends Resource {
readonly provisioningState?: string;
Expand All @@ -601,6 +628,7 @@ export interface ContainerGroup extends Resource {
volumes?: Volume[];
readonly instanceView?: ContainerGroupPropertiesInstanceView;
diagnostics?: ContainerGroupDiagnostics;
networkProfile?: ContainerGroupNetworkProfile;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.IpAddress = require('./ipAddress');
exports.ContainerGroupPropertiesInstanceView = require('./containerGroupPropertiesInstanceView');
exports.LogAnalytics = require('./logAnalytics');
exports.ContainerGroupDiagnostics = require('./containerGroupDiagnostics');
exports.ContainerGroupNetworkProfile = require('./containerGroupNetworkProfile');
exports.Resource = require('./resource');
exports.ContainerGroup = require('./containerGroup');
exports.OperationDisplay = require('./operationDisplay');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class LogAnalytics {
* Create a LogAnalytics.
* @member {string} workspaceId The workspace id for log analytics
* @member {string} workspaceKey The workspace key for log analytics
* @member {string} [logType] The log type to be used. Possible values
* include: 'ContainerInsights', 'ContainerInstanceLogs'
* @member {object} [metadata] Metadata for log analytics.
*/
constructor() {
}
Expand Down Expand Up @@ -50,6 +53,27 @@ class LogAnalytics {
type: {
name: 'String'
}
},
logType: {
required: false,
serializedName: 'logType',
type: {
name: 'String'
}
},
metadata: {
required: false,
serializedName: 'metadata',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
Loading