コード例 #1
0
        /// <summary>
        /// Modifies the parameters of a Connector Group in associated with a Zone
        /// </summary>
        /// <example>
        /// {
        /// "Zone": {"Id":"ZoneId"},
        /// "ApiVersionMin":"v3",
        /// "ApiVersionMax":"v3",
        /// "IconUrl":"https://domain/icons",
        /// "FormUrl":"https://domain/forms"
        /// }
        /// </example>
        /// <param name="url"></param>
        /// <param name="zoneId"></param>
        /// <param name="connectorGroupZone"></param>
        /// <returns>
        /// the created or modified AccessControl instance
        /// </returns>
        public IQuery<ConnectorGroupZone> UpdateZones(Uri url, string zoneId, ConnectorGroupZone connectorGroupZone)
        {
            var sfApiQuery = new ShareFile.Api.Client.Requests.Query<ConnectorGroupZone>(Client);
		    sfApiQuery.Action("Zones");
            sfApiQuery.Uri(url);
            sfApiQuery.ActionIds(zoneId);
            sfApiQuery.Body = connectorGroupZone;
            sfApiQuery.HttpMethod = "PATCH";	
		    return sfApiQuery;
        }
コード例 #2
0
        /// <summary>
        /// Associates a Zone to an existing Connecto Group
        /// </summary>
        /// <example>
        /// {
        /// "Zone": {"Id":"ZoneId"},
        /// "StorageCenter": [ { "Id":"StorageCenterId" }, { ... } ],
        /// "ApiVersionMin":"v3",
        /// "ApiVersionMax":"v3",
        /// "IconUrl":"https://domain/icons",
        /// "FormUrl":"https://domain/forms"
        /// }
        /// </example>
        /// <remarks>
        /// Adds a Zone to an existing Connector Group.
        /// </remarks>
        /// <param name="url"></param>
        /// <param name="connectorGroupZone"></param>
        /// <returns>
        /// the created or modified AccessControl instance
        /// </returns>
        public IQuery<ConnectorGroupZone> CreateZones(Uri url, ConnectorGroupZone connectorGroupZone)
        {
            var sfApiQuery = new ShareFile.Api.Client.Requests.Query<ConnectorGroupZone>(Client);
		    sfApiQuery.Action("Zones");
            sfApiQuery.Uri(url);
            sfApiQuery.Body = connectorGroupZone;
            sfApiQuery.HttpMethod = "POST";	
		    return sfApiQuery;
        }