Example #1
0
 /// <summary>
 /// get my personal settings
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>PersonalSettings</returns>
 public PersonalSettings GetMyPersonalSettings()
 {
     Cloud.Governance.Client.Client.ApiResponse <PersonalSettings> localVarResponse = GetMyPersonalSettingsWithHttpInfo();
     return(localVarResponse.Data);
 }
Example #2
0
 /// <summary>
 /// get user profile property names
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="adminCenterUrl"></param>
 /// <returns>List&lt;string&gt;</returns>
 public List <string> GetUpsPropertyNames(string adminCenterUrl)
 {
     Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = GetUpsPropertyNamesWithHttpInfo(adminCenterUrl);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// get azure ad custom property names
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="tenantId"></param>
 /// <param name="isSearchUserProperty"> (optional, default to false)</param>
 /// <returns>List&lt;string&gt;</returns>
 public List <string> GetAzureAdCustomPropertyNames(Guid tenantId, bool?isSearchUserProperty = default(bool?))
 {
     Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = GetAzureAdCustomPropertyNamesWithHttpInfo(tenantId, isSearchUserProperty);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// get all services
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="filter">Use **eq**(equal) or **ne**(not equal) to filter the results (e.g. field1 eq &#39;value1&#39; and field2 ne &#39;value2&#39;), supported fields :&lt;br/&gt; id, description, name, serviceType, status, language, modifiedTime, createdByDisplayName, createdBy (optional)</param>
        /// <param name="orderby">Order by one field, supported fields:&lt;br/&gt; id, description, name, serviceType, status, language, modifiedTime, createdByDisplayName, createdBy (optional)</param>
        /// <param name="search">Search for name (optional)</param>
        /// <param name="top"> Define the number of records you want to return, max value is 200, default value is 200 (optional)</param>
        /// <param name="skip"> Define the number of records you want to skip, default value is 0 (optional)</param>
        /// <param name="nexttoken"> Use the next token to get the next paging result (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of ServiceGridModelPageResult</returns>
        public async System.Threading.Tasks.Task <ServiceGridModelPageResult> GetServicesAsync(string filter = default(string), string orderby = default(string), string search = default(string), int?top = default(int?), string skip = default(string), string nexttoken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Cloud.Governance.Client.Client.ApiResponse <ServiceGridModelPageResult> localVarResponse = await GetServicesWithHttpInfoAsync(filter, orderby, search, top, skip, nexttoken, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Example #5
0
 /// <summary>
 /// get azure ad custom property names
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="tenantId"></param>
 /// <returns>List&lt;string&gt;</returns>
 public List <string> GetAzureAdCustomPropertyNames(Guid tenantId)
 {
     Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = GetAzureAdCustomPropertyNamesWithHttpInfo(tenantId);
     return(localVarResponse.Data);
 }
Example #6
0
        /// <summary>
        /// submit questionnaire
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="questionnaireRequest"> (optional)</param>
        /// <returns>Task of List&lt;ServiceList&gt;</returns>
        public async System.Threading.Tasks.Task <List <ServiceList> > SubmitQuestionnaireAsync(QuestionnaireRequest questionnaireRequest = default(QuestionnaireRequest))
        {
            Cloud.Governance.Client.Client.ApiResponse <List <ServiceList> > localVarResponse = await SubmitQuestionnaireAsyncWithHttpInfo(questionnaireRequest);

            return(localVarResponse.Data);
        }
Example #7
0
        /// <summary>
        /// submit questionnaire in workspace
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="objecttype"></param>
        /// <param name="objectid"></param>
        /// <param name="questionnaireRequest"> (optional)</param>
        /// <returns>Task of List&lt;ServiceList&gt;</returns>
        public async System.Threading.Tasks.Task <List <ServiceList> > SubmitQuestionnaireInWorkspaceAsync(WorkspaceType objecttype, string objectid, QuestionnaireRequest questionnaireRequest = default(QuestionnaireRequest))
        {
            Cloud.Governance.Client.Client.ApiResponse <List <ServiceList> > localVarResponse = await SubmitQuestionnaireInWorkspaceAsyncWithHttpInfo(objecttype, objectid, questionnaireRequest);

            return(localVarResponse.Data);
        }
Example #8
0
 /// <summary>
 /// get the url which used to get user access token
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="redirectUri">your application url to receive the token (optional)</param>
 /// <returns>string</returns>
 public string GetUserTokenUrl(string redirectUri = default(string))
 {
     Cloud.Governance.Client.Client.ApiResponse <string> localVarResponse = GetUserTokenUrlWithHttpInfo(redirectUri);
     return(localVarResponse.Data);
 }
Example #9
0
        /// <summary>
        /// get the url which used to get user access token
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="redirectUri">your application url to receive the token (optional)</param>
        /// <returns>Task of string</returns>
        public async System.Threading.Tasks.Task <string> GetUserTokenUrlAsync(string redirectUri = default(string))
        {
            Cloud.Governance.Client.Client.ApiResponse <string> localVarResponse = await GetUserTokenUrlAsyncWithHttpInfo(redirectUri);

            return(localVarResponse.Data);
        }
Example #10
0
 /// <summary>
 /// get delegate access token by client id and client secret which created in cloud governance Api Authentication Management
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="clientId"></param>
 /// <param name="clientSecret"></param>
 /// <param name="userPrincipalName"></param>
 /// <returns>DelegatedAccessTokenApiResult</returns>
 public DelegatedAccessTokenApiResult GetDelegateAccessToken(Guid clientId, string clientSecret, string userPrincipalName)
 {
     Cloud.Governance.Client.Client.ApiResponse <DelegatedAccessTokenApiResult> localVarResponse = GetDelegateAccessTokenWithHttpInfo(clientId, clientSecret, userPrincipalName);
     return(localVarResponse.Data);
 }
Example #11
0
        /// <summary>
        /// get delegate access token by client id and client secret which created in cloud governance Api Authentication Management
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="clientId"></param>
        /// <param name="clientSecret"></param>
        /// <param name="userPrincipalName"></param>
        /// <returns>Task of DelegatedAccessTokenApiResult</returns>
        public async System.Threading.Tasks.Task <DelegatedAccessTokenApiResult> GetDelegateAccessTokenAsync(Guid clientId, string clientSecret, string userPrincipalName)
        {
            Cloud.Governance.Client.Client.ApiResponse <DelegatedAccessTokenApiResult> localVarResponse = await GetDelegateAccessTokenAsyncWithHttpInfo(clientId, clientSecret, userPrincipalName);

            return(localVarResponse.Data);
        }
Example #12
0
        /// <summary>
        /// get permission levels
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;PermissionLevel&gt;</returns>
        public async System.Threading.Tasks.Task <List <PermissionLevel> > GetPermissionLevelsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Cloud.Governance.Client.Client.ApiResponse <List <PermissionLevel> > localVarResponse = await GetPermissionLevelsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Example #13
0
 /// <summary>
 /// get permission levels
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;PermissionLevel&gt;</returns>
 public List <PermissionLevel> GetPermissionLevels()
 {
     Cloud.Governance.Client.Client.ApiResponse <List <PermissionLevel> > localVarResponse = GetPermissionLevelsWithHttpInfo();
     return(localVarResponse.Data);
 }
Example #14
0
        /// <summary>
        /// get my personal settings
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of PersonalSettings</returns>
        public async System.Threading.Tasks.Task <PersonalSettings> GetMyPersonalSettingsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Cloud.Governance.Client.Client.ApiResponse <PersonalSettings> localVarResponse = await GetMyPersonalSettingsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Example #15
0
        /// <summary>
        /// get questionnaire by id
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id"></param>
        /// <returns>Task of QuestionnaireRef</returns>
        public async System.Threading.Tasks.Task <QuestionnaireRef> GetQuestionnaireByIdAsync(Guid id)
        {
            Cloud.Governance.Client.Client.ApiResponse <QuestionnaireRef> localVarResponse = await GetQuestionnaireByIdAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
Example #16
0
 /// <summary>
 /// refresh user access token
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="refreshToken"></param>
 /// <returns>DelegatedAccessTokenApiResult</returns>
 public DelegatedAccessTokenApiResult RefreshUserAccessToken(string refreshToken)
 {
     Cloud.Governance.Client.Client.ApiResponse <DelegatedAccessTokenApiResult> localVarResponse = RefreshUserAccessTokenWithHttpInfo(refreshToken);
     return(localVarResponse.Data);
 }
Example #17
0
 /// <summary>
 /// submit questionnaire
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="questionnaireRequest"> (optional)</param>
 /// <returns>List&lt;ServiceList&gt;</returns>
 public List <ServiceList> SubmitQuestionnaire(QuestionnaireRequest questionnaireRequest = default(QuestionnaireRequest))
 {
     Cloud.Governance.Client.Client.ApiResponse <List <ServiceList> > localVarResponse = SubmitQuestionnaireWithHttpInfo(questionnaireRequest);
     return(localVarResponse.Data);
 }
Example #18
0
        /// <summary>
        /// refresh user access token
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="refreshToken"></param>
        /// <returns>Task of DelegatedAccessTokenApiResult</returns>
        public async System.Threading.Tasks.Task <DelegatedAccessTokenApiResult> RefreshUserAccessTokenAsync(string refreshToken)
        {
            Cloud.Governance.Client.Client.ApiResponse <DelegatedAccessTokenApiResult> localVarResponse = await RefreshUserAccessTokenAsyncWithHttpInfo(refreshToken);

            return(localVarResponse.Data);
        }
Example #19
0
 /// <summary>
 /// submit questionnaire in workspace
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="objecttype"></param>
 /// <param name="objectid"></param>
 /// <param name="questionnaireRequest"> (optional)</param>
 /// <returns>List&lt;ServiceList&gt;</returns>
 public List <ServiceList> SubmitQuestionnaireInWorkspace(WorkspaceType objecttype, string objectid, QuestionnaireRequest questionnaireRequest = default(QuestionnaireRequest))
 {
     Cloud.Governance.Client.Client.ApiResponse <List <ServiceList> > localVarResponse = SubmitQuestionnaireInWorkspaceWithHttpInfo(objecttype, objectid, questionnaireRequest);
     return(localVarResponse.Data);
 }
Example #20
0
 /// <summary>
 /// get metadata
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="filter">Use **eq**(equal) or **ne**(not equal) to filter the results (e.g. field1 eq &#39;value1&#39; and field2 ne &#39;value2&#39;), supported fields :&lt;br/&gt; id, name, description, fieldType, metadataValue, showInReportType, lastModifiedTime (optional)</param>
 /// <param name="orderby">Order by one field, supported fields:&lt;br/&gt; id, name, description, fieldType, metadataValue, showInReportType, lastModifiedTime (optional)</param>
 /// <param name="search">Search for name (optional)</param>
 /// <param name="top"> Define the number of records you want to return, max value is 200, default value is 200 (optional)</param>
 /// <param name="skip"> Define the number of records you want to skip, default value is 0 (optional)</param>
 /// <returns>CustomMetadataPageResult</returns>
 public CustomMetadataPageResult GetMetadata(string filter = default(string), string orderby = default(string), string search = default(string), int?top = default(int?), int?skip = default(int?))
 {
     Cloud.Governance.Client.Client.ApiResponse <CustomMetadataPageResult> localVarResponse = GetMetadataWithHttpInfo(filter, orderby, search, top, skip);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// get all services
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="filter">Use **eq**(equal) or **ne**(not equal) to filter the results (e.g. field1 eq &#39;value1&#39; and field2 ne &#39;value2&#39;), supported fields :&lt;br/&gt; id, description, name, serviceType, status, language, modifiedTime, createdByDisplayName, createdBy (optional)</param>
 /// <param name="orderby">Order by one field, supported fields:&lt;br/&gt; id, description, name, serviceType, status, language, modifiedTime, createdByDisplayName, createdBy (optional)</param>
 /// <param name="search">Search for name (optional)</param>
 /// <param name="top"> Define the number of records you want to return, max value is 200, default value is 200 (optional)</param>
 /// <param name="skip"> Define the number of records you want to skip, default value is 0 (optional)</param>
 /// <param name="nexttoken"> Use the next token to get the next paging result (optional)</param>
 /// <returns>ServiceGridModelPageResult</returns>
 public ServiceGridModelPageResult GetServices(string filter = default(string), string orderby = default(string), string search = default(string), int?top = default(int?), string skip = default(string), string nexttoken = default(string))
 {
     Cloud.Governance.Client.Client.ApiResponse <ServiceGridModelPageResult> localVarResponse = GetServicesWithHttpInfo(filter, orderby, search, top, skip, nexttoken);
     return(localVarResponse.Data);
 }
Example #22
0
        /// <summary>
        /// get metadata
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="filter">Use **eq**(equal) or **ne**(not equal) to filter the results (e.g. field1 eq &#39;value1&#39; and field2 ne &#39;value2&#39;), supported fields :&lt;br/&gt; id, name, description, fieldType, metadataValue, showInReportType, lastModifiedTime (optional)</param>
        /// <param name="orderby">Order by one field, supported fields:&lt;br/&gt; id, name, description, fieldType, metadataValue, showInReportType, lastModifiedTime (optional)</param>
        /// <param name="search">Search for name (optional)</param>
        /// <param name="top"> Define the number of records you want to return, max value is 200, default value is 200 (optional)</param>
        /// <param name="skip"> Define the number of records you want to skip, default value is 0 (optional)</param>
        /// <returns>Task of CustomMetadataPageResult</returns>
        public async System.Threading.Tasks.Task <CustomMetadataPageResult> GetMetadataAsync(string filter = default(string), string orderby = default(string), string search = default(string), int?top = default(int?), int?skip = default(int?))
        {
            Cloud.Governance.Client.Client.ApiResponse <CustomMetadataPageResult> localVarResponse = await GetMetadataAsyncWithHttpInfo(filter, orderby, search, top, skip);

            return(localVarResponse.Data);
        }
Example #23
0
 /// <summary>
 /// get azure ad custom property names
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;string&gt;</returns>
 public List <string> GetAzureAdBuiltInPropertyNames()
 {
     Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = GetAzureAdBuiltInPropertyNamesWithHttpInfo();
     return(localVarResponse.Data);
 }
Example #24
0
 /// <summary>
 /// get metadata by id
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id"></param>
 /// <returns>CustomMetadata</returns>
 public CustomMetadata GetMetadataById(Guid id)
 {
     Cloud.Governance.Client.Client.ApiResponse <CustomMetadata> localVarResponse = GetMetadataByIdWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Example #25
0
        /// <summary>
        /// get azure ad custom property names
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tenantId"></param>
        /// <returns>Task of List&lt;string&gt;</returns>
        public async System.Threading.Tasks.Task <List <string> > GetAzureAdCustomPropertyNamesAsync(Guid tenantId)
        {
            Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = await GetAzureAdCustomPropertyNamesAsyncWithHttpInfo(tenantId);

            return(localVarResponse.Data);
        }
Example #26
0
        /// <summary>
        /// get metadata by id
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id"></param>
        /// <returns>Task of CustomMetadata</returns>
        public async System.Threading.Tasks.Task <CustomMetadata> GetMetadataByIdAsync(Guid id)
        {
            Cloud.Governance.Client.Client.ApiResponse <CustomMetadata> localVarResponse = await GetMetadataByIdAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
Example #27
0
        /// <summary>
        /// get user profile property names
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="adminCenterUrl"></param>
        /// <returns>Task of List&lt;string&gt;</returns>
        public async System.Threading.Tasks.Task <List <string> > GetUpsPropertyNamesAsync(string adminCenterUrl)
        {
            Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = await GetUpsPropertyNamesAsyncWithHttpInfo(adminCenterUrl);

            return(localVarResponse.Data);
        }
Example #28
0
 /// <summary>
 /// get questionnaire by id
 /// </summary>
 /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id"></param>
 /// <returns>QuestionnaireRef</returns>
 public QuestionnaireRef GetQuestionnaireById(Guid id)
 {
     Cloud.Governance.Client.Client.ApiResponse <QuestionnaireRef> localVarResponse = GetQuestionnaireByIdWithHttpInfo(id);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// get azure ad custom property names
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tenantId"></param>
        /// <param name="isSearchUserProperty"> (optional, default to false)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;string&gt;</returns>
        public async System.Threading.Tasks.Task <List <string> > GetAzureAdCustomPropertyNamesAsync(Guid tenantId, bool?isSearchUserProperty = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Cloud.Governance.Client.Client.ApiResponse <List <string> > localVarResponse = await GetAzureAdCustomPropertyNamesWithHttpInfoAsync(tenantId, isSearchUserProperty, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Example #30
0
        /// <summary>
        /// get group/teams dynamic membership rules
        /// </summary>
        /// <exception cref="Cloud.Governance.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tenantid"></param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of InlineResponse200</returns>
        public async System.Threading.Tasks.Task <InlineResponse200> GetDynamicMembershipRuleItemsAsync(Guid tenantid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Cloud.Governance.Client.Client.ApiResponse <InlineResponse200> localVarResponse = await GetDynamicMembershipRuleItemsWithHttpInfoAsync(tenantid, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }